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 -> {
Log.d(TAG, "User launched an external application.", true)
errorHandlerCallback?.onUserLaunchedAnExternalApplication()
Log.d(TAG, "Long-running donation is still pending.", true)
errorHandlerCallback?.navigateToDonationPending(inAppPayment)
}
is DonationError.UserLaunchedExternalApplication -> {
Log.d(TAG, "Long-running donation is still pending.", true)
errorHandlerCallback?.navigateToDonationPending(inAppPayment)
Log.d(TAG, "User launched an external application.", true)
errorHandlerCallback?.onUserLaunchedAnExternalApplication()
}
else -> {