diff options
author | blafoo <github@blafoo.de> | 2012-05-10 08:32:40 +0200 |
---|---|---|
committer | blafoo <github@blafoo.de> | 2012-05-10 20:30:49 +0200 |
commit | a1872ca8261b558d6a737067bfa580921f1d6f42 (patch) | |
tree | bef89a35300eeade857e0d4f76cefcbb08648ab0 /main/src/cgeo/geocaching/VisitCacheActivity.java | |
parent | 05dfbb7b0126b50a852d3be422f6c1d0bdf0f2e1 (diff) | |
download | cgeo-a1872ca8261b558d6a737067bfa580921f1d6f42.zip cgeo-a1872ca8261b558d6a737067bfa580921f1d6f42.tar.gz cgeo-a1872ca8261b558d6a737067bfa580921f1d6f42.tar.bz2 |
Refactoring: updateCache()
Diffstat (limited to 'main/src/cgeo/geocaching/VisitCacheActivity.java')
-rw-r--r-- | main/src/cgeo/geocaching/VisitCacheActivity.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/VisitCacheActivity.java b/main/src/cgeo/geocaching/VisitCacheActivity.java index df55ad6..13b21c7 100644 --- a/main/src/cgeo/geocaching/VisitCacheActivity.java +++ b/main/src/cgeo/geocaching/VisitCacheActivity.java @@ -4,7 +4,6 @@ import cgeo.geocaching.activity.AbstractActivity; import cgeo.geocaching.connector.gc.GCParser; import cgeo.geocaching.connector.gc.Login; import cgeo.geocaching.enumerations.LoadFlags; -import cgeo.geocaching.enumerations.LoadFlags.SaveFlag; import cgeo.geocaching.enumerations.LogType; import cgeo.geocaching.enumerations.LogTypeTrackable; import cgeo.geocaching.enumerations.StatusCode; @@ -43,7 +42,6 @@ import android.widget.TextView; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; -import java.util.EnumSet; import java.util.List; public class VisitCacheActivity extends AbstractActivity implements DateDialog.DateDialogParent { @@ -708,7 +706,7 @@ public class VisitCacheActivity extends AbstractActivity implements DateDialog.D cache.setFound(true); } - app.saveCache(cache, cache.getListId() != StoredList.TEMPORARY_LIST_ID ? LoadFlags.SAVE_ALL : EnumSet.of(SaveFlag.SAVE_CACHE)); + app.updateCache(cache); } if (status == StatusCode.NO_ERROR) { |