Max zoom can't be more than 22

This commit is contained in:
Denis 2014-11-03 16:13:23 +02:00
parent 957fff9ce8
commit a8dcdd70c4

View file

@ -462,6 +462,10 @@ public class MapActivity extends AccessibleActivity implements
// changeLocation = false;
// }
final int newZoom = mapView.getZoom() + stp;
if (newZoom > 22) {
AccessibleToast.makeText(this, "Max zoom", Toast.LENGTH_SHORT).show(); //$NON-NLS-1$
return;
}
mapView.getAnimatedDraggingThread().startZooming(newZoom, changeLocation);
if (app.accessibilityEnabled())
AccessibleToast.makeText(this, getString(R.string.zoomIs) + " " + newZoom, Toast.LENGTH_SHORT).show(); //$NON-NLS-1$