aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBananeweizen <Bananeweizen@gmx.de>2012-02-16 08:31:29 +0100
committerBananeweizen <Bananeweizen@gmx.de>2012-02-16 08:31:29 +0100
commit17a047acc1c0e9cc50cbb52c36f574875b005fe1 (patch)
treec9f25dac21e4433eb27dd03e0a80a28461a99cb6
parent165910f327630231b131f6890df0defae28775ce (diff)
downloadcgeo-17a047acc1c0e9cc50cbb52c36f574875b005fe1.zip
cgeo-17a047acc1c0e9cc50cbb52c36f574875b005fe1.tar.gz
cgeo-17a047acc1c0e9cc50cbb52c36f574875b005fe1.tar.bz2
fix: caches from online search cannot be stored directly from the list
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 1fc4486..0ac8461 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -1887,7 +1887,9 @@ public class cgeocaches extends AbstractListActivity {
setPriority(Thread.MIN_PRIORITY);
handler = handlerIn;
- this.listIdLD = listId;
+
+ // in case of online lists, set the list id to the standard list
+ this.listIdLD = Math.max(listId, StoredList.STANDARD_LIST_ID);
if (adapter != null) {
checked = adapter.getChecked();