diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2011-10-09 09:12:25 +0200 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2011-10-09 09:12:25 +0200 |
commit | 97f6b2ec8434efa54114eb9efff7a4ee6ddf8f68 (patch) | |
tree | 63393c60c5f7b0713cd38f34e4bc141af348e5f3 /main/src/cgeo/geocaching/cgeodetail.java | |
parent | 12ce469d7f0f75c43c13cac65026aa68ac95ba55 (diff) | |
download | cgeo-97f6b2ec8434efa54114eb9efff7a4ee6ddf8f68.zip cgeo-97f6b2ec8434efa54114eb9efff7a4ee6ddf8f68.tar.gz cgeo-97f6b2ec8434efa54114eb9efff7a4ee6ddf8f68.tar.bz2 |
refactoring: make cache list type an enum
* have enum instead of String for cache list type comparisons
* move all invocations of the cache list activity into the class itself
* remove duplicated invocations
* remove cache type extra, it can be read from Settings instead
Diffstat (limited to 'main/src/cgeo/geocaching/cgeodetail.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeodetail.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgeodetail.java b/main/src/cgeo/geocaching/cgeodetail.java index c871fb7..0ac1291 100644 --- a/main/src/cgeo/geocaching/cgeodetail.java +++ b/main/src/cgeo/geocaching/cgeodetail.java @@ -491,10 +491,10 @@ public class cgeodetail extends AbstractActivity { final int id = item.getItemId(); if (id == 1) { - cgeocaches.startActivityCacheOwner(this, contextMenuUser); + cgeocaches.startActivityOwner(this, contextMenuUser); return true; } else if (id == 2) { - cgeocaches.startActivityCacheUser(this, contextMenuUser); + cgeocaches.startActivityUserName(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)))); |