diff options
| author | rsudev <rasch@munin-soft.de> | 2013-02-12 12:56:08 -0800 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2013-02-12 12:56:08 -0800 |
| commit | 15fe10dee791e7383fa9be8a13461d02fb10790e (patch) | |
| tree | 8c0188ae357e60f854e573b66392538a5b01d160 /main/src/cgeo/geocaching/Geocache.java | |
| parent | 7b4a0b337a5f22bf0058c22967da94faea9ce318 (diff) | |
| parent | 3a9a9a4e0dfe7a6def0cec0870391621f66cc906 (diff) | |
| download | cgeo-15fe10dee791e7383fa9be8a13461d02fb10790e.zip cgeo-15fe10dee791e7383fa9be8a13461d02fb10790e.tar.gz cgeo-15fe10dee791e7383fa9be8a13461d02fb10790e.tar.bz2 | |
Merge pull request #2460 from koem/chooselist
Changes for issue #275
Diffstat (limited to 'main/src/cgeo/geocaching/Geocache.java')
| -rw-r--r-- | main/src/cgeo/geocaching/Geocache.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/Geocache.java b/main/src/cgeo/geocaching/Geocache.java index eb74d8c..cfa66bb 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,8 +1374,14 @@ public class Geocache implements ICache, IWaypoint { } public void store(CancellableHandler handler) { - final int listId = Math.max(getListId(), StoredList.STANDARD_LIST_ID); - storeCache(this, null, listId, false, handler); + store(StoredList.TEMPORARY_LIST_ID, handler); + } + + public void store(final int listId, CancellableHandler handler) { + int newListId = listId < StoredList.STANDARD_LIST_ID + ? Math.max(getListId(), StoredList.STANDARD_LIST_ID) + : listId; + storeCache(this, null, newListId, false, handler); } public void setZoomlevel(int zoomlevel) { |
