aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/apps/cache
diff options
context:
space:
mode:
authorTorsten Keil <github@torsten-keil.net>2012-01-24 19:15:45 +0100
committerTorsten Keil <github@torsten-keil.net>2012-01-24 19:15:45 +0100
commitcd561bd585be3d2951a57d72fa68cff84a1bb2e9 (patch)
tree0bfcb0b67cd2c058a07259b40b7b62857593cf71 /main/src/cgeo/geocaching/apps/cache
parent47548e810f3be434139d710a81650cf1fe93aa8d (diff)
downloadcgeo-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.java6
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;
}