Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-12-31 08:00:05 +01:00
commit 42e956b0de

View file

@ -1052,16 +1052,16 @@ public class OsmandMapTileView implements IMapDownloaderCallback {
}
private boolean isZoomingAllowed(int baseZoom, float dz) {
if (baseZoom >= getMaxZoom()) {
if (baseZoom > getMaxZoom()) {
return false;
}
if (baseZoom >= getMaxZoom() - 1 && dz >= 1) {
if (baseZoom > getMaxZoom() - 1 && dz >= 1) {
return false;
}
if (baseZoom <= getMinZoom()) {
if (baseZoom < getMinZoom()) {
return false;
}
if (baseZoom <= getMinZoom() + 1 && dz <= -1) {
if (baseZoom < getMinZoom() + 1 && dz <= -1) {
return false;
}
return true;