From 390ea3f3846cd1654c7be158b4b115655d48d11f Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 25 May 2018 14:48:20 +0300 Subject: [PATCH] removed check for TRAVEL_PREFIX --- OsmAnd/src/net/osmand/plus/helpers/DiscountHelper.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/DiscountHelper.java b/OsmAnd/src/net/osmand/plus/helpers/DiscountHelper.java index 84718d1881..8f6562297e 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/DiscountHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/DiscountHelper.java @@ -40,7 +40,6 @@ public class DiscountHelper { private static boolean mBannerVisible; private static final String URL = "https://osmand.net/api/motd"; private static final String INAPP_PREFIX = "osmand-in-app:"; - private static final String TRAVEL_PREFIX = "https://osmand.net/travel"; public static void checkAndDisplay(final MapActivity mapActivity) { @@ -224,11 +223,6 @@ public class DiscountHelper { } else if (url.contains(InAppPurchaseHelper.SKU_LIVE_UPDATES)){ ChoosePlanDialogFragment.showOsmLiveInstance(mapActivity.getSupportFragmentManager()); } - } else if (url.startsWith(TRAVEL_PREFIX)) { - Intent intent = new Intent(Intent.ACTION_SEND); - intent.putExtra(Intent.EXTRA_TEXT, url); - intent.setType("text/plain"); - mapActivity.startActivity(Intent.createChooser(intent, mapActivity.getString(R.string.shared_string_share))); } else { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(url));