Fix critical issue of 208%

This commit is contained in:
vshcherb 2013-11-01 09:47:05 +01:00
parent 9fc8150955
commit 4c67ef8209
2 changed files with 2 additions and 2 deletions

View file

@ -217,7 +217,7 @@ public class MapUtils {
}
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);
} else {
return Math.pow(2, zoom);

View file

@ -1272,7 +1272,7 @@ public class MapActivityActions implements DialogProvider {
}
}).reg();
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
: R.string.animate_route).icons(R.drawable.ic_action_play_dark, R.drawable.ic_action_play_light )