Fix callbacks for DonationPending and UserLaunchedExternalApplication donation delegate methods.

This commit is contained in:
Alex Hart 2024-09-10 16:58:33 -03:00 committed by Cody Henthorne
parent 7472166628
commit b681b4169f

View file

@ -292,13 +292,13 @@ class InAppPaymentCheckoutDelegate(
} }
is DonationError.BadgeRedemptionError.DonationPending -> { is DonationError.BadgeRedemptionError.DonationPending -> {
Log.d(TAG, "User launched an external application.", true) Log.d(TAG, "Long-running donation is still pending.", true)
errorHandlerCallback?.onUserLaunchedAnExternalApplication() errorHandlerCallback?.navigateToDonationPending(inAppPayment)
} }
is DonationError.UserLaunchedExternalApplication -> { is DonationError.UserLaunchedExternalApplication -> {
Log.d(TAG, "Long-running donation is still pending.", true) Log.d(TAG, "User launched an external application.", true)
errorHandlerCallback?.navigateToDonationPending(inAppPayment) errorHandlerCallback?.onUserLaunchedAnExternalApplication()
} }
else -> { else -> {