mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-17 11:19:01 +00:00
fix iap issue
# Conflicts: # Habitica/build.gradle
This commit is contained in:
parent
813bac9274
commit
73fcc75eab
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ class PurchaseHandler(
|
|||
val mostRecentSub = findMostRecentSubscription(purchases)
|
||||
val plan = userViewModel.user.value?.purchased?.plan
|
||||
for (purchase in purchases) {
|
||||
if (plan?.isActive == true) {
|
||||
if (plan?.isActive == true && PurchaseTypes.allSubscriptionTypes.contains(purchase.skus.firstOrNull())) {
|
||||
if ((plan.additionalData?.data?.orderId == purchase.orderId &&
|
||||
((plan.dateTerminated != null) == purchase.isAutoRenewing)) ||
|
||||
mostRecentSub?.orderId != purchase.orderId
|
||||
|
|
|
|||
Loading…
Reference in a new issue