small fixes
This commit is contained in:
parent
a2a3087b68
commit
116742f348
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,7 @@ public class MapActivityKeyListener implements KeyEvent.Callback {
|
||||||
mapActivity.getMapViewTrackingUtilities().backToLocationImpl();
|
mapActivity.getMapViewTrackingUtilities().backToLocationImpl();
|
||||||
} else if (keyCode == KeyEvent.KEYCODE_D) {
|
} else if (keyCode == KeyEvent.KEYCODE_D) {
|
||||||
mapActivity.getMapViewTrackingUtilities().switchRotateMapMode();
|
mapActivity.getMapViewTrackingUtilities().switchRotateMapMode();
|
||||||
} if (keyCode == KeyEvent.KEYCODE_MINUS) {
|
} else if (keyCode == KeyEvent.KEYCODE_MINUS) {
|
||||||
mapActivity.changeZoom(-1);
|
mapActivity.changeZoom(-1);
|
||||||
return true;
|
return true;
|
||||||
} else if (keyCode == KeyEvent.KEYCODE_PLUS || keyCode == KeyEvent.KEYCODE_EQUALS) {
|
} else if (keyCode == KeyEvent.KEYCODE_PLUS || keyCode == KeyEvent.KEYCODE_EQUALS) {
|
||||||
|
@ -126,6 +126,8 @@ public class MapActivityKeyListener implements KeyEvent.Callback {
|
||||||
mapActivity.startActivity(intent);
|
mapActivity.startActivity(intent);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
} else if (settings.EXTERNAL_INPUT_DEVICE.get() == GENERIC_EXTERNAL_DEVICE) {
|
||||||
|
// currently doesn't process specific commands
|
||||||
} else if (OsmandPlugin.onMapActivityKeyUp(mapActivity, keyCode)) {
|
} else if (OsmandPlugin.onMapActivityKeyUp(mapActivity, keyCode)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue