From f8e39d4c07bb2c708d557039195c207cb15c81dc Mon Sep 17 00:00:00 2001 From: Roman Romanov Date: Wed, 17 May 2017 16:04:15 +0400 Subject: [android] Changed lead url scheme from http/https to mapsme. And domain: lead.maps.me -> lead. --- android/AndroidManifest.xml | 8 ++------ android/src/com/mapswithme/maps/DownloadResourcesActivity.java | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 285256642a..4a96c148ae 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -142,12 +142,8 @@ - - + android:host="lead" + android:scheme="mapsme"/> diff --git a/android/src/com/mapswithme/maps/DownloadResourcesActivity.java b/android/src/com/mapswithme/maps/DownloadResourcesActivity.java index ea23a23e34..bc885fd0d7 100644 --- a/android/src/com/mapswithme/maps/DownloadResourcesActivity.java +++ b/android/src/com/mapswithme/maps/DownloadResourcesActivity.java @@ -628,7 +628,7 @@ public class DownloadResourcesActivity extends BaseMwmFragmentActivity if (TextUtils.isEmpty(scheme) || TextUtils.isEmpty(host)) return false; - return (scheme.equals("https") || scheme.equals("http")) && "lead.maps.me".equals(host); + return scheme.equals("mapsme") && "lead".equals(host); } @Override -- cgit v1.2.3 From 112687842ef1000ca968f896ceff5385e36fbeef Mon Sep 17 00:00:00 2001 From: Roman Romanov Date: Wed, 17 May 2017 16:30:45 +0400 Subject: [android] added mapswithme scheme --- android/AndroidManifest.xml | 3 +++ android/src/com/mapswithme/maps/DownloadResourcesActivity.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 4a96c148ae..5a03170b94 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -144,6 +144,9 @@ + diff --git a/android/src/com/mapswithme/maps/DownloadResourcesActivity.java b/android/src/com/mapswithme/maps/DownloadResourcesActivity.java index bc885fd0d7..d261875883 100644 --- a/android/src/com/mapswithme/maps/DownloadResourcesActivity.java +++ b/android/src/com/mapswithme/maps/DownloadResourcesActivity.java @@ -628,7 +628,7 @@ public class DownloadResourcesActivity extends BaseMwmFragmentActivity if (TextUtils.isEmpty(scheme) || TextUtils.isEmpty(host)) return false; - return scheme.equals("mapsme") && "lead".equals(host); + return (scheme.equals("mapsme") || scheme.equals("mapswithme")) && "lead".equals(host); } @Override -- cgit v1.2.3