aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/list/StoredList.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/list/StoredList.java')
-rw-r--r--main/src/cgeo/geocaching/list/StoredList.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/list/StoredList.java b/main/src/cgeo/geocaching/list/StoredList.java
index 6aa1975..e557fc8 100644
--- a/main/src/cgeo/geocaching/list/StoredList.java
+++ b/main/src/cgeo/geocaching/list/StoredList.java
@@ -147,12 +147,12 @@ public final class StoredList extends AbstractList {
public void promptForListCreation(@NonNull final Action1<Integer> runAfterwards, String newListName) {
handleListNameInput(newListName, R.string.list_dialog_create_title, R.string.list_dialog_create, new Action1<String>() {
+ // We need to update the list cache by creating a new StoredList object here.
+ @SuppressWarnings("unused")
@Override
public void call(final String listName) {
final int newId = DataStore.createList(listName);
-
- // We need to update the list cache by creating a new object here.
- @SuppressWarnings("unused") StoredList list = new StoredList(newId, listName, 0);
+ new StoredList(newId, listName, 0);
if (newId >= DataStore.customListIdOffset) {
ActivityMixin.showToast(activity, res.getString(R.string.list_dialog_create_ok));