Skip to content

Commit

Permalink
update logic for when app switch is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
saperi22 committed Jan 13, 2025
1 parent f4ea668 commit bbae18c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@ internal class PayPalInternalClient(
.build()
}

fun isAppSwitchEnabled(payPalRequest: PayPalRequest): Boolean {
return (payPalRequest is PayPalVaultRequest) &&
payPalRequest.enablePayPalAppSwitch
}
fun isAppSwitchEnabled(payPalRequest: PayPalRequest) = payPalRequest.enablePayPalAppSwitch

fun isPayPalInstalled(context: Context): Boolean {
return deviceInspector.isPayPalInstalled(context)
Expand Down

0 comments on commit bbae18c

Please sign in to comment.