aboutsummaryrefslogtreecommitdiffstats
path: root/src/cgeo/geocaching/cgeotrackable.java
diff options
context:
space:
mode:
authorGerald Barker <geraldbarker@gmail.com>2011-09-03 11:49:25 +0100
committerGerald Barker <geraldbarker@gmail.com>2011-09-03 11:49:25 +0100
commit22940d838d710537e8e5c83b1d22015747fbc4e4 (patch)
tree216ea388625a7f7ed3505e5854b025fc475f5a14 /src/cgeo/geocaching/cgeotrackable.java
parent560ce54b9727e4fb5e514716b33b70352f3a0ff1 (diff)
parent8d040c24bfbb2a12788dede9911f14333df5098d (diff)
downloadcgeo-22940d838d710537e8e5c83b1d22015747fbc4e4.zip
cgeo-22940d838d710537e8e5c83b1d22015747fbc4e4.tar.gz
cgeo-22940d838d710537e8e5c83b1d22015747fbc4e4.tar.bz2
Update locaal branch to revision 8d040c24bfbb2a12788d
Diffstat (limited to 'src/cgeo/geocaching/cgeotrackable.java')
-rw-r--r--src/cgeo/geocaching/cgeotrackable.java18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/cgeo/geocaching/cgeotrackable.java b/src/cgeo/geocaching/cgeotrackable.java
index c96b344..8959771 100644
--- a/src/cgeo/geocaching/cgeotrackable.java
+++ b/src/cgeo/geocaching/cgeotrackable.java
@@ -421,24 +421,10 @@ public class cgeotrackable extends AbstractActivity {
final int id = item.getItemId();
if (id == 1) {
- final Intent cachesIntent = new Intent(this, cgeocaches.class);
-
- cachesIntent.putExtra("type", "owner");
- cachesIntent.putExtra("username", contextMenuUser);
- cachesIntent.putExtra("cachetype", settings.cacheType);
-
- startActivity(cachesIntent);
-
+ cgeocaches.startActivityCacheOwner(this, contextMenuUser);
return true;
} else if (id == 2) {
- final Intent cachesIntent = new Intent(this, cgeocaches.class);
-
- cachesIntent.putExtra("type", "username");
- cachesIntent.putExtra("username", contextMenuUser);
- cachesIntent.putExtra("cachetype", settings.cacheType);
-
- startActivity(cachesIntent);
-
+ cgeocaches.startActivityCacheUser(this, contextMenuUser);
return true;
} else if (id == 3) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.geocaching.com/profile/?u=" + URLEncoder.encode(contextMenuUser))));