Merge pull request #10527 from osmandapp/minor_fix
Fix map link parsing
This commit is contained in:
commit
055e857de9
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue