Fix resubscribe

This commit is contained in:
max-klaus 2021-04-14 21:09:41 +03:00
parent d9baad5644
commit e7da52098a

View file

@ -175,7 +175,8 @@ public class InAppPurchaseHelperImpl extends InAppPurchaseHelper {
});
}
for (Purchase purchase : purchases) {
if (!purchase.isAcknowledged()) {
InAppSubscription subscription = getLiveUpdates().getSubscriptionBySku(purchase.getSku());
if (!purchase.isAcknowledged() || (subscription != null && !subscription.isPurchased())) {
onPurchaseFinished(purchase);
}
}