diff options
author | Bananeweizen <Bananeweizen@gmx.de> | 2012-05-18 10:37:13 +0200 |
---|---|---|
committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-05-18 10:37:13 +0200 |
commit | ed354de82bbfb61c9a1d9c2f8ce2c7cbe33a8cc9 (patch) | |
tree | 64a58c937274156878da20c26336c01775b7dbd6 /main/src/cgeo/geocaching/apps/cache | |
parent | c42b5697a1c7cadc4acf345f848d6d076bad9e17 (diff) | |
download | cgeo-ed354de82bbfb61c9a1d9c2f8ce2c7cbe33a8cc9.zip cgeo-ed354de82bbfb61c9a1d9c2f8ce2c7cbe33a8cc9.tar.gz cgeo-ed354de82bbfb61c9a1d9c2f8ce2c7cbe33a8cc9.tar.bz2 |
new: for some activities, don't re-open them when resuming the app
Diffstat (limited to 'main/src/cgeo/geocaching/apps/cache')
-rw-r--r-- | main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java b/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java index ffcac8e..2edd030 100644 --- a/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java +++ b/main/src/cgeo/geocaching/apps/cache/navi/AbstractStaticMapsApp.java @@ -12,7 +12,6 @@ import cgeo.geocaching.activity.ActivityMixin; import org.apache.commons.lang3.StringUtils; import android.app.Activity; -import android.content.Intent; abstract class AbstractStaticMapsApp extends AbstractNavigationApp { public AbstractStaticMapsApp(String name) { @@ -53,16 +52,7 @@ abstract class AbstractStaticMapsApp extends AbstractNavigationApp { return true; } - final Intent intent = new Intent(activity, StaticMapsActivity.class); - intent.putExtra("geocode", geocode); - if (download) { - intent.putExtra("download", true); - } - if (waypoint != null) { - intent.putExtra("waypoint", waypoint.getId()); - } - activity.startActivity(intent); - + StaticMapsActivity.startActivity(activity, geocode, download, waypoint); return true; } |