aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeocaches.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-11-08 16:07:00 +0100
committerSamuel Tardieu <sam@rfc1149.net>2011-11-08 16:07:00 +0100
commite891e0cb62599fa6c7e9a6fce74f9b31d0b2e7d1 (patch)
tree31f3c574471379f4ce23d1f620e0c5e1783dd19b /main/src/cgeo/geocaching/cgeocaches.java
parent2255aa28d81ce4e625abd01f3d12780507e5bde6 (diff)
downloadcgeo-e891e0cb62599fa6c7e9a6fce74f9b31d0b2e7d1.zip
cgeo-e891e0cb62599fa6c7e9a6fce74f9b31d0b2e7d1.tar.gz
cgeo-e891e0cb62599fa6c7e9a6fce74f9b31d0b2e7d1.tar.bz2
Settings.cacheType returns a CacheType
This was accidentally left out of the previous refactoring.
Diffstat (limited to 'main/src/cgeo/geocaching/cgeocaches.java')
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 07087cd..ab86e95 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -556,7 +556,7 @@ public class cgeocaches extends AbstractListActivity {
Object typeObject = extras.get(EXTRAS_LIST_TYPE);
type = (typeObject instanceof CacheListType) ? (CacheListType) typeObject : CacheListType.OFFLINE;
coords = new Geopoint(extras.getDouble("latitude"), extras.getDouble("longitude"));
- cachetype = CacheType.getById(Settings.getCacheType());
+ cachetype = Settings.getCacheType();
keyword = extras.getString("keyword");
address = extras.getString("address");
username = extras.getString("username");
@@ -1775,7 +1775,7 @@ public class cgeocaches extends AbstractListActivity {
@Override
public void run() {
if (coords != null) {
- search = base.searchByOffline(coords, CacheType.getById(Settings.getCacheType()), listId);
+ search = base.searchByOffline(coords, Settings.getCacheType(), listId);
} else {
search = base.searchByOffline(null, null, cgList.STANDARD_LIST_ID);
}