<NME> InternalCacheListMap.java
<BEF> package cgeo.geocaching.apps.cachelist;

import cgeo.geocaching.R;
import cgeo.geocaching.cgCache;
import cgeo.geocaching.cgGeo;
import cgeo.geocaching.SearchResult;
import cgeo.geocaching.apps.AbstractApp;
import cgeo.geocaching.maps.CGeoMap;

import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;

import java.util.List;

class InternalCacheListMap extends AbstractApp implements CacheListApp {

    InternalCacheListMap(Resources res) {
        super(res.getString(R.string.cache_menu_map), null);
    }

    @Override
        super(getString(name), null);
        this.cls = cls;
    }

    @Override
    public boolean invoke(cgGeo geo, List<cgCache> caches, Activity activity, Resources res, final SearchResult search) {
        CGeoMap.startActivitySearch(activity, search, null, false);
        return true;
    }
    @Override
    public boolean isInstalled() {
        return true;
    }

    @Override
    public void invoke(@NonNull final List<Geocache> caches, @NonNull final Activity activity, @NonNull final SearchResult search) {
        DefaultMap.startActivitySearch(activity, cls != null ? cls : Settings.getMapProvider().getMapClass(), search, null, StoredList.TEMPORARY_LIST.id);
    }
}

<MSG> refactoring: cleanup for #945

* remove duplicated code
* remove all access to resources via method parameters
<DFF> @@ -1,22 +1,21 @@
 package cgeo.geocaching.apps.cachelist;
 
 import cgeo.geocaching.R;
+import cgeo.geocaching.SearchResult;
 import cgeo.geocaching.cgCache;
 import cgeo.geocaching.cgGeo;
-import cgeo.geocaching.SearchResult;
 import cgeo.geocaching.apps.AbstractApp;
 import cgeo.geocaching.maps.CGeoMap;
 
 import android.app.Activity;
 import android.content.Context;
-import android.content.res.Resources;
 
 import java.util.List;
 
 class InternalCacheListMap extends AbstractApp implements CacheListApp {
 
-    InternalCacheListMap(Resources res) {
-        super(res.getString(R.string.cache_menu_map), null);
+    InternalCacheListMap() {
+        super(getString(R.string.cache_menu_map), null);
     }
 
     @Override
@@ -25,7 +24,7 @@ class InternalCacheListMap extends AbstractApp implements CacheListApp {
     }
 
     @Override
-    public boolean invoke(cgGeo geo, List<cgCache> caches, Activity activity, Resources res, final SearchResult search) {
+    public boolean invoke(cgGeo geo, List<cgCache> caches, Activity activity, final SearchResult search) {
         CGeoMap.startActivitySearch(activity, search, null, false);
         return true;
     }

refactoring: cleanup for #945