aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java')
-rw-r--r--src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java51
1 files changed, 26 insertions, 25 deletions
diff --git a/src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java b/src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java
index 2fd418e..7eec0f8 100644
--- a/src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java
+++ b/src/cgeo/geocaching/apps/cachelist/InternalCacheListMap.java
@@ -1,36 +1,37 @@
package cgeo.geocaching.apps.cachelist;
-import java.util.List;
-import java.util.UUID;
+import cgeo.geocaching.R;
+import cgeo.geocaching.cgCache;
+import cgeo.geocaching.cgGeo;
+import cgeo.geocaching.apps.AbstractApp;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
-import cgeo.geocaching.R;
-import cgeo.geocaching.cgCache;
-import cgeo.geocaching.cgGeo;
-import cgeo.geocaching.apps.AbstractApp;
+
+import java.util.List;
+import java.util.UUID;
class InternalCacheListMap extends AbstractApp implements CacheListApp {
- InternalCacheListMap(Resources res) {
- super(res.getString(R.string.cache_menu_map), null);
- }
-
- @Override
- public boolean isInstalled(Context context) {
- return true;
- }
-
- @Override
- public boolean invoke(cgGeo geo, List<cgCache> caches, Activity activity, Resources res, final UUID searchId) {
- Intent mapIntent = new Intent(activity, getSettings(activity).getMapFactory()
- .getMapClass());
- mapIntent.putExtra("detail", false); // this is the main difference to the activity for a single point
- mapIntent.putExtra("searchid", searchId.toString());
-
- activity.startActivity(mapIntent);
- return true;
- }
+ InternalCacheListMap(Resources res) {
+ super(res.getString(R.string.cache_menu_map), null);
+ }
+
+ @Override
+ public boolean isInstalled(Context context) {
+ return true;
+ }
+
+ @Override
+ public boolean invoke(cgGeo geo, List<cgCache> caches, Activity activity, Resources res, final UUID searchId) {
+ Intent mapIntent = new Intent(activity, getSettings(activity).getMapFactory()
+ .getMapClass());
+ mapIntent.putExtra("detail", false); // this is the main difference to the activity for a single point
+ mapIntent.putExtra("searchid", searchId.toString());
+
+ activity.startActivity(mapIntent);
+ return true;
+ }
}