diff options
| author | Bananeweizen <Bananeweizen@gmx.de> | 2012-02-16 08:31:29 +0100 |
|---|---|---|
| committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-02-16 08:31:29 +0100 |
| commit | 17a047acc1c0e9cc50cbb52c36f574875b005fe1 (patch) | |
| tree | c9f25dac21e4433eb27dd03e0a80a28461a99cb6 | |
| parent | 165910f327630231b131f6890df0defae28775ce (diff) | |
| download | cgeo-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.java | 4 |
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(); |
