From e9966899b7d77f10e1569f0f6c85bb752553500c Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Thu, 13 Jul 2023 06:50:40 -0300 Subject: [PATCH] Revert "[Android] backurl API fixes (#5322)" This reverts commit a3a33938edc64ceedee6f504c3d4c18b6aa6abd4. Signed-off-by: Viktor Govako --- android/src/app/organicmaps/intent/Factory.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/android/src/app/organicmaps/intent/Factory.java b/android/src/app/organicmaps/intent/Factory.java index 824ee36198..5da9d96b59 100644 --- a/android/src/app/organicmaps/intent/Factory.java +++ b/android/src/app/organicmaps/intent/Factory.java @@ -202,6 +202,13 @@ public class Factory { final ParsingResult result = Framework.nativeParseAndSetApiUrl(getUrl()); + // TODO: Kernel recognizes "mapsme://", "mwm://" and "mapswithme://" schemas only!!! + if (result.getUrlType() == ParsingResult.TYPE_INCORRECT) + return Map.showMapForUrl(getUrl()); + + if (!result.isSuccess()) + return false; + final Uri uri = Uri.parse(getUrl()); final String backUrl = uri.getQueryParameter("backurl"); if (!TextUtils.isEmpty(backUrl)) @@ -211,13 +218,6 @@ public class Factory intent.putExtra(MwmActivity.EXTRA_BACK_URL, backUrl); } - // Kernel recognizes "om://", "mapsme://", "mwm://" and "mapswithme://" schemes only!!! - if (result.getUrlType() == ParsingResult.TYPE_INCORRECT) - return Map.showMapForUrl(getUrl()); - - if (!result.isSuccess()) - return false; - switch (result.getUrlType()) { case ParsingResult.TYPE_INCORRECT: