From 0877f1be590c185a05b55e9e668b4be28f543fa7 Mon Sep 17 00:00:00 2001 From: "Igor B. Poretsky" Date: Fri, 13 Jan 2017 21:12:31 +0300 Subject: [PATCH] Removed zoom control by volume keys --- .../net/osmand/plus/activities/MapActivity.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java index 7503982632..2471e3f241 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java @@ -1055,20 +1055,6 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven startActivity(newIntent); newIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); return true; - } else if (!app.getRoutingHelper().isFollowingMode() - && OsmandPlugin.getEnabledPlugin(AccessibilityPlugin.class) != null) { - // Find more appropriate plugin for it? - if (keyCode == KeyEvent.KEYCODE_VOLUME_UP && event.getRepeatCount() == 0) { - if (mapView.isZooming()) { - changeZoom(+2); - } else { - changeZoom(+1); - } - return true; - } else if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN && event.getRepeatCount() == 0) { - changeZoom(-1); - return true; - } } return super.onKeyDown(keyCode, event); }