From 29b71365756fa124048d0cc4daa226662b387202 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 5 Jan 2021 15:17:26 +0200 Subject: [PATCH] Fix map link parsing --- OsmAnd/src/net/osmand/plus/helpers/IntentHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/IntentHelper.java b/OsmAnd/src/net/osmand/plus/helpers/IntentHelper.java index b8e176529a..e4e6fac9dd 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/IntentHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/IntentHelper.java @@ -90,7 +90,7 @@ public class IntentHelper { String zoom = data.getQueryParameter("z"); int z = settings.getLastKnownMapZoom(); if (zoom != null) { - z = Integer.parseInt(zoom); + z = (int) Double.parseDouble(zoom); } settings.setMapLocationToShow(lt, ln, z, new PointDescription(lt, ln)); } catch (NumberFormatException e) {