diff --git a/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanDialogFragment.java b/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanDialogFragment.java index 6c114d8218..2a7c149c12 100644 --- a/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/chooseplan/ChoosePlanDialogFragment.java @@ -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 diff --git a/OsmAnd/src/net/osmand/plus/liveupdates/SubscriptionFragment.java b/OsmAnd/src/net/osmand/plus/liveupdates/SubscriptionFragment.java index 3a5d8a8635..f5f2d81095 100644 --- a/OsmAnd/src/net/osmand/plus/liveupdates/SubscriptionFragment.java +++ b/OsmAnd/src/net/osmand/plus/liveupdates/SubscriptionFragment.java @@ -303,7 +303,7 @@ public class SubscriptionFragment extends BaseOsmAndDialogFragment implements In @Override public void onItemPurchased(String sku, boolean active) { - dismiss(); + dismissAllowingStateLoss(); } @Override