aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-09-15 18:05:25 +0200
committerSamuel Tardieu <sam@rfc1149.net>2013-09-15 18:05:25 +0200
commitec5c569f35730fa608a1ea83d46e4e60f1985310 (patch)
treefc8d0aeb35d39f93f287eac955071305daf01461 /main
parent78ff20302e4073a319bf89d997d190401fa5f3fa (diff)
downloadcgeo-ec5c569f35730fa608a1ea83d46e4e60f1985310.zip
cgeo-ec5c569f35730fa608a1ea83d46e4e60f1985310.tar.gz
cgeo-ec5c569f35730fa608a1ea83d46e4e60f1985310.tar.bz2
fix #3286: move selected caches to a new list not possible
The new list needs to be registered as a concrete list so that moving caches into it is allowed.
Diffstat (limited to 'main')
-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 cd7297c..d3729c0 100644
--- a/main/src/cgeo/geocaching/list/StoredList.java
+++ b/main/src/cgeo/geocaching/list/StoredList.java
@@ -145,6 +145,7 @@ public final class StoredList extends AbstractList {
@Override
public void run(final String listName) {
final int newId = DataStore.createList(listName);
+ new StoredList(newId, listName, 0);
if (newId >= DataStore.customListIdOffset) {
ActivityMixin.showToast(activity, res.getString(R.string.list_dialog_create_ok));