From cd561bd585be3d2951a57d72fa68cff84a1bb2e9 Mon Sep 17 00:00:00 2001 From: Torsten Keil Date: Tue, 24 Jan 2012 19:15:45 +0100 Subject: changed method arguments --- main/src/cgeo/geocaching/apps/cache/navi/NavigationAppFactory.java | 6 +++--- 1 file 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; } -- cgit v1.1