Fix IllegalStateException

This commit is contained in:
Vitaliy 2020-02-26 17:05:20 +02:00
parent 09f735eec9
commit b1624162bf
2 changed files with 3 additions and 3 deletions

View file

@ -649,7 +649,7 @@ public abstract class ChoosePlanDialogFragment extends BaseOsmAndDialogFragment
public void onGetItems() {
OsmandApplication app = getMyApplication();
if (app != null && InAppPurchaseHelper.isSubscribedToLiveUpdates(app)) {
dismiss();
dismissAllowingStateLoss();
}
}
@ -661,7 +661,7 @@ public abstract class ChoosePlanDialogFragment extends BaseOsmAndDialogFragment
showDonationSettings();
}
}
dismiss();
dismissAllowingStateLoss();
}
@Override

View file

@ -303,7 +303,7 @@ public class SubscriptionFragment extends BaseOsmAndDialogFragment implements In
@Override
public void onItemPurchased(String sku, boolean active) {
dismiss();
dismissAllowingStateLoss();
}
@Override