diff options
Diffstat (limited to 'main/src/cgeo/geocaching/list/StoredList.java')
| -rw-r--r-- | main/src/cgeo/geocaching/list/StoredList.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/list/StoredList.java b/main/src/cgeo/geocaching/list/StoredList.java index 7e2a83c..6aa1975 100644 --- a/main/src/cgeo/geocaching/list/StoredList.java +++ b/main/src/cgeo/geocaching/list/StoredList.java @@ -150,7 +150,9 @@ public final class StoredList extends AbstractList { @Override public void call(final String listName) { final int newId = DataStore.createList(listName); - new StoredList(newId, listName, 0); + + // We need to update the list cache by creating a new object here. + @SuppressWarnings("unused") StoredList list = new StoredList(newId, listName, 0); if (newId >= DataStore.customListIdOffset) { ActivityMixin.showToast(activity, res.getString(R.string.list_dialog_create_ok)); |
