aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/list
diff options
context:
space:
mode:
authorMichael Keppler <michael.keppler@gmx.de>2014-04-19 10:03:35 +0200
committerMichael Keppler <michael.keppler@gmx.de>2014-04-19 10:03:35 +0200
commit6297ba5eece1982ce8b24ad470372c9faee8e957 (patch)
tree8697a79b175b49cbc081ce2e46fd0f080b56261c /main/src/cgeo/geocaching/list
parent856133fddb826e616a994bae0c32169a5f2f781c (diff)
downloadcgeo-6297ba5eece1982ce8b24ad470372c9faee8e957.zip
cgeo-6297ba5eece1982ce8b24ad470372c9faee8e957.tar.gz
cgeo-6297ba5eece1982ce8b24ad470372c9faee8e957.tar.bz2
fix remaining warnings or document them
Diffstat (limited to 'main/src/cgeo/geocaching/list')
-rw-r--r--main/src/cgeo/geocaching/list/StoredList.java4
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));