Merge pull request #11199 from osmandapp/amazon_market

Remove check for free version
This commit is contained in:
vshcherb 2021-03-19 14:41:22 +01:00 committed by GitHub
commit d3722d8540
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -734,7 +734,7 @@ public abstract class ChoosePlanDialogFragment extends BaseOsmAndDialogFragment
public static void showDialogInstance(@NonNull OsmandApplication app, @NonNull FragmentManager manager, public static void showDialogInstance(@NonNull OsmandApplication app, @NonNull FragmentManager manager,
@NonNull ChoosePlanDialogType dialogType) { @NonNull ChoosePlanDialogType dialogType) {
if (Version.isAmazon() && !Version.isPaidVersion(app)) { if (Version.isAmazon()) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(Version.getUrlWithUtmRef(app, "net.osmand.plus"))); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(Version.getUrlWithUtmRef(app, "net.osmand.plus")));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (AndroidUtils.isIntentSafe(app, intent)) { if (AndroidUtils.isIntentSafe(app, intent)) {