Fix critical issue of 208%
This commit is contained in:
parent
9fc8150955
commit
4c67ef8209
2 changed files with 2 additions and 2 deletions
|
@ -217,7 +217,7 @@ public class MapUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static double getPowZoom(float zoom){
|
public static double getPowZoom(float zoom){
|
||||||
if(zoom >= 0 && zoom - Math.floor(zoom) < 0.05f){
|
if(zoom >= 0 && zoom - Math.floor(zoom) < 0.001f){
|
||||||
return 1 << ((int)zoom);
|
return 1 << ((int)zoom);
|
||||||
} else {
|
} else {
|
||||||
return Math.pow(2, zoom);
|
return Math.pow(2, zoom);
|
||||||
|
|
|
@ -1272,7 +1272,7 @@ public class MapActivityActions implements DialogProvider {
|
||||||
}
|
}
|
||||||
}).reg();
|
}).reg();
|
||||||
final OsmAndLocationProvider loc = app.getLocationProvider();
|
final OsmAndLocationProvider loc = app.getLocationProvider();
|
||||||
if (app.getTargetPointsHelper().getPointToNavigate() != null) {
|
if (app.getTargetPointsHelper().getPointToNavigate() != null || loc.getLocationSimulation().isRouteAnimating()) {
|
||||||
|
|
||||||
optionsMenuHelper.item(loc.getLocationSimulation().isRouteAnimating() ? R.string.animate_route_off
|
optionsMenuHelper.item(loc.getLocationSimulation().isRouteAnimating() ? R.string.animate_route_off
|
||||||
: R.string.animate_route).icons(R.drawable.ic_action_play_dark, R.drawable.ic_action_play_light )
|
: R.string.animate_route).icons(R.drawable.ic_action_play_dark, R.drawable.ic_action_play_light )
|
||||||
|
|
Loading…
Reference in a new issue