Fix minzoom
This commit is contained in:
parent
7f08071164
commit
ace453db8c
1 changed files with 4 additions and 0 deletions
|
@ -548,6 +548,10 @@ public class MapActivity extends AccessibleActivity {
|
|||
AccessibleToast.makeText(this, R.string.edit_tilesource_maxzoom, Toast.LENGTH_SHORT).show(); //$NON-NLS-1$
|
||||
return;
|
||||
}
|
||||
if(newZoom < 1) {
|
||||
AccessibleToast.makeText(this, R.string.edit_tilesource_minzoom, Toast.LENGTH_SHORT).show(); //$NON-NLS-1$
|
||||
return;
|
||||
}
|
||||
mapView.getAnimatedDraggingThread().startZooming(newZoom, zoomFrac, changeLocation);
|
||||
if (app.accessibilityEnabled())
|
||||
AccessibleToast.makeText(this, getString(R.string.zoomIs) + " " + newZoom, Toast.LENGTH_SHORT).show(); //$NON-NLS-1$
|
||||
|
|
Loading…
Reference in a new issue