Merge pull request #10527 from osmandapp/minor_fix

Fix map link parsing
This commit is contained in:
vshcherb 2021-01-05 15:41:48 +01:00 committed by GitHub
commit 055e857de9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {