removed check for TRAVEL_PREFIX
This commit is contained in:
parent
d58e00a552
commit
520cb4a79e
1 changed files with 0 additions and 6 deletions
|
@ -40,7 +40,6 @@ public class DiscountHelper {
|
||||||
private static boolean mBannerVisible;
|
private static boolean mBannerVisible;
|
||||||
private static final String URL = "https://osmand.net/api/motd";
|
private static final String URL = "https://osmand.net/api/motd";
|
||||||
private static final String INAPP_PREFIX = "osmand-in-app:";
|
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) {
|
public static void checkAndDisplay(final MapActivity mapActivity) {
|
||||||
|
@ -224,11 +223,6 @@ public class DiscountHelper {
|
||||||
} else if (url.contains(InAppPurchaseHelper.SKU_LIVE_UPDATES)){
|
} else if (url.contains(InAppPurchaseHelper.SKU_LIVE_UPDATES)){
|
||||||
ChoosePlanDialogFragment.showOsmLiveInstance(mapActivity.getSupportFragmentManager());
|
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 {
|
} else {
|
||||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||||
intent.setData(Uri.parse(url));
|
intent.setData(Uri.parse(url));
|
||||||
|
|
Loading…
Reference in a new issue