Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Zatsepin <az@mapswithme.com>2018-08-09 15:18:34 +0300
committerAleksey Belousov <beloal@users.noreply.github.com>2018-08-10 20:16:14 +0300
commit76fe38a833b8669ea362045e204c5947029e1d88 (patch)
treee6a5106581d8399781d8bd376c200ff24db5a236 /android/src
parentb50aaf2bcf2d2906300faf8499f760a40c2ab846 (diff)
[android] Added Mapsme scheme intent processor
Diffstat (limited to 'android/src')
-rw-r--r--android/src/com/mapswithme/maps/DownloadResourcesLegacyActivity.java1
-rw-r--r--android/src/com/mapswithme/maps/intent/Factory.java15
2 files changed, 16 insertions, 0 deletions
diff --git a/android/src/com/mapswithme/maps/DownloadResourcesLegacyActivity.java b/android/src/com/mapswithme/maps/DownloadResourcesLegacyActivity.java
index ec501aef45..95eefdcb7d 100644
--- a/android/src/com/mapswithme/maps/DownloadResourcesLegacyActivity.java
+++ b/android/src/com/mapswithme/maps/DownloadResourcesLegacyActivity.java
@@ -95,6 +95,7 @@ public class DownloadResourcesLegacyActivity extends BaseMwmFragmentActivity
Factory.createBookmarkCatalogueProcessor(),
Factory.createOldCoreLinkAdapterProcessor(),
Factory.createOpenCountryTaskProcessor(),
+ Factory.createMapsmeProcessor(),
Factory.createKmzKmlProcessor(this),
Factory.createShowOnMapProcessor(),
Factory.createBuildRouteProcessor()
diff --git a/android/src/com/mapswithme/maps/intent/Factory.java b/android/src/com/mapswithme/maps/intent/Factory.java
index 1155bcbd62..9411213032 100644
--- a/android/src/com/mapswithme/maps/intent/Factory.java
+++ b/android/src/com/mapswithme/maps/intent/Factory.java
@@ -101,6 +101,12 @@ public class Factory
return new GeoIntentProcessor();
}
+ @NonNull
+ public static IntentProcessor createMapsmeProcessor()
+ {
+ return new MapsmeProcessor();
+ }
+
private static abstract class LogIntentProcessor implements IntentProcessor
{
private static final Logger LOGGER = LoggerFactory.INSTANCE.getLogger(LoggerFactory.Type.MISC);
@@ -151,6 +157,15 @@ public class Factory
}
}
+ private static class MapsmeProcessor extends BaseOpenUrlProcessor
+ {
+ @Override
+ public boolean isSupported(@NonNull Intent intent)
+ {
+ return "mapsme".equals(intent.getScheme());
+ }
+ }
+
private static class HttpGe0IntentProcessor implements IntentProcessor
{
@Override