Do not auto-dismiss choose plan dialog until purchase finshed

This commit is contained in:
Alexey Kulish 2018-05-07 22:04:16 +03:00
parent 36d6bf5d39
commit ad3d74e673
3 changed files with 2 additions and 3 deletions

View file

@ -306,7 +306,6 @@ public abstract class ChoosePlanDialogFragment extends BaseOsmAndDialogFragment
@Override
public void onClick(View v) {
subscript();
dismiss();
}
});
}
@ -448,6 +447,7 @@ public abstract class ChoosePlanDialogFragment extends BaseOsmAndDialogFragment
@Override
public void onItemPurchased(String sku, boolean active) {
dismiss();
}
@Override

View file

@ -107,9 +107,9 @@ public class ChoosePlanFreeBannerDialogFragment extends ChoosePlanDialogFragment
app.logEvent(getActivity(), "in_app_purchase_redirect_from_banner");
} else {
app.logEvent(getActivity(), "paid_version_redirect_from_banner");
dismiss();
}
OsmandInAppPurchaseActivity.purchaseFullVersion(activity);
dismiss();
}
}
});

View file

@ -93,7 +93,6 @@ public class ChoosePlanSeaDepthMapsDialogFragment extends ChoosePlanDialogFragme
Activity activity = getActivity();
if (activity != null) {
OsmandInAppPurchaseActivity.purchaseDepthContours(activity);
dismiss();
}
}
});