diff options
| author | koem <koem@petoria.de> | 2013-02-08 18:25:01 +1300 |
|---|---|---|
| committer | koem <koem@petoria.de> | 2013-02-08 18:25:01 +1300 |
| commit | ebda1db90874465df018d5b3c65e5c4393839fe6 (patch) | |
| tree | 73640ebeeaa354449ced45702dbdc00e3cbf00c9 /main/src/cgeo/geocaching/Geocache.java | |
| parent | a6443368f75b9635a6ce83328c04eb53b172c906 (diff) | |
| download | cgeo-ebda1db90874465df018d5b3c65e5c4393839fe6.zip cgeo-ebda1db90874465df018d5b3c65e5c4393839fe6.tar.gz cgeo-ebda1db90874465df018d5b3c65e5c4393839fe6.tar.bz2 | |
issue #275 - Move to other list from cache screen
and: choose list when storing
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
| -rw-r--r-- | main/src/cgeo/geocaching/Geocache.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java index eb74d8c..7613665 100644 --- a/main/src/cgeo/geocaching/Geocache.java +++ b/main/src/cgeo/geocaching/Geocache.java @@ -1,8 +1,8 @@ package cgeo.geocaching; +import cgeo.geocaching.cgData.StorageLocation; import cgeo.geocaching.activity.ActivityMixin; import cgeo.geocaching.activity.IAbstractActivity; -import cgeo.geocaching.cgData.StorageLocation; import cgeo.geocaching.connector.ConnectorFactory; import cgeo.geocaching.connector.IConnector; import cgeo.geocaching.connector.capability.ISearchByCenter; @@ -1374,7 +1374,13 @@ public class Geocache implements ICache, IWaypoint { } public void store(CancellableHandler handler) { - final int listId = Math.max(getListId(), StoredList.STANDARD_LIST_ID); + store(StoredList.TEMPORARY_LIST_ID, handler); + } + + public void store(int listId, CancellableHandler handler) { + if (listId < StoredList.STANDARD_LIST_ID) { + listId = Math.max(getListId(), StoredList.STANDARD_LIST_ID); + } storeCache(this, null, listId, false, handler); } |
