summaryrefslogtreecommitdiff
path: root/navit/android/src
diff options
context:
space:
mode:
authormdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-12-21 13:30:58 +0000
committermdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2014-12-21 13:30:58 +0000
commit8076636b9040a53f4f4f61d4eb4b5b6694f50a4f (patch)
tree6a60ba20a6cea448a55422b2f629c76fe16eb2ae /navit/android/src
parent626a2770e27003c59ddf68f3a65a0083e40c8b7e (diff)
downloadnavit-8076636b9040a53f4f4f61d4eb4b5b6694f50a4f.tar.gz
Add:port_android:Allow Android map download and backup/restore dialogs to be called from internal gui, for devices which have no hardware menu button.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5979 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/android/src')
-rw-r--r--navit/android/src/org/navitproject/navit/Navit.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/navit/android/src/org/navitproject/navit/Navit.java b/navit/android/src/org/navitproject/navit/Navit.java
index 3e5d58d72..5cafb9882 100644
--- a/navit/android/src/org/navitproject/navit/Navit.java
+++ b/navit/android/src/org/navitproject/navit/Navit.java
@@ -508,8 +508,14 @@ public class Navit extends Activity
@Override
public boolean onOptionsItemSelected(MenuItem item)
{
+ runOptionsItem(item.getItemId());
+ return true;
+ }
+
+ public void runOptionsItem(int id)
+ {
// Handle item selection
- switch (item.getItemId())
+ switch (id)
{
case 1 :
// zoom in
@@ -559,7 +565,6 @@ public class Navit extends Activity
this.exit();
break;
}
- return true;
}
void setDestination(float latitude, float longitude, String address) {