Fix map link parsing

This commit is contained in:
Vitaliy 2021-01-05 15:17:26 +02:00
parent 39bff12057
commit 29b7136575

View file

@ -90,7 +90,7 @@ public class IntentHelper {
String zoom = data.getQueryParameter("z"); String zoom = data.getQueryParameter("z");
int z = settings.getLastKnownMapZoom(); int z = settings.getLastKnownMapZoom();
if (zoom != null) { if (zoom != null) {
z = Integer.parseInt(zoom); z = (int) Double.parseDouble(zoom);
} }
settings.setMapLocationToShow(lt, ln, z, new PointDescription(lt, ln)); settings.setMapLocationToShow(lt, ln, z, new PointDescription(lt, ln));
} catch (NumberFormatException e) { } catch (NumberFormatException e) {