diff options
author | Torsten Keil <github@torsten-keil.net> | 2012-01-24 19:15:45 +0100 |
---|---|---|
committer | Torsten Keil <github@torsten-keil.net> | 2012-01-24 19:15:45 +0100 |
commit | cd561bd585be3d2951a57d72fa68cff84a1bb2e9 (patch) | |
tree | 0bfcb0b67cd2c058a07259b40b7b62857593cf71 /main/src/cgeo/geocaching/apps/cache | |
parent | 47548e810f3be434139d710a81650cf1fe93aa8d (diff) | |
download | cgeo-cd561bd585be3d2951a57d72fa68cff84a1bb2e9.zip cgeo-cd561bd585be3d2951a57d72fa68cff84a1bb2e9.tar.gz cgeo-cd561bd585be3d2951a57d72fa68cff84a1bb2e9.tar.bz2 |
changed method arguments
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cache')
-rw-r--r-- | main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java b/main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java index 7b0d503..ac1cd8a 100644 --- a/main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java +++ b/main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java @@ -100,7 +100,7 @@ public final class NavigationAppFactory extends AbstractAppFactory { return false; } - final NavigationApp app = getAppFromMenuItem(item, NavigationAppsEnum.values()); + final NavigationApp app = getAppFromMenuItem(item); if (app != null) { try { return app.invoke(geo, activity, cache, @@ -112,9 +112,9 @@ public final class NavigationAppFactory extends AbstractAppFactory { return false; } - public static NavigationApp getAppFromMenuItem(MenuItem item, NavigationAppsEnum[] apps) { + public static NavigationApp getAppFromMenuItem(MenuItem item) { final int id = item.getItemId(); - for (NavigationAppsEnum navApp : apps) { + for (NavigationAppsEnum navApp : NavigationAppsEnum.values()) { if (navApp.id == id) { return navApp.app; } |