aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/list
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-09-15 17:55:07 +0200
committerSamuel Tardieu <sam@rfc1149.net>2013-09-15 17:58:48 +0200
commit78ff20302e4073a319bf89d997d190401fa5f3fa (patch)
treeb49662385b707f05ce08638355b0a9020874611b /main/src/cgeo/geocaching/list
parente1b8a4269d855b044606c19962994960d6507fbb (diff)
downloadcgeo-78ff20302e4073a319bf89d997d190401fa5f3fa.zip
cgeo-78ff20302e4073a319bf89d997d190401fa5f3fa.tar.gz
cgeo-78ff20302e4073a319bf89d997d190401fa5f3fa.tar.bz2
fix #3285: delete from list is not possible
By creating the temporary list, it is recognized as a concrete list towards which caches can be moved. This also fixed #3287.
Diffstat (limited to 'main/src/cgeo/geocaching/list')
-rw-r--r--main/src/cgeo/geocaching/list/StoredList.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/list/StoredList.java b/main/src/cgeo/geocaching/list/StoredList.java
index feb40c7..cd7297c 100644
--- a/main/src/cgeo/geocaching/list/StoredList.java
+++ b/main/src/cgeo/geocaching/list/StoredList.java
@@ -24,6 +24,7 @@ import java.util.List;
public final class StoredList extends AbstractList {
public static final int TEMPORARY_LIST_ID = 0;
+ public static final StoredList TEMPORARY_LIST = new StoredList(TEMPORARY_LIST_ID, "<temporary>", 0); // Never displayed
public static final int STANDARD_LIST_ID = 1;
private final int count; // this value is only valid as long as the list is not changed by other database operations