aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/VisitCacheActivity.java
diff options
context:
space:
mode:
authorblafoo <github@blafoo.de>2012-05-10 08:32:40 +0200
committerblafoo <github@blafoo.de>2012-05-10 20:30:49 +0200
commita1872ca8261b558d6a737067bfa580921f1d6f42 (patch)
treebef89a35300eeade857e0d4f76cefcbb08648ab0 /main/src/cgeo/geocaching/VisitCacheActivity.java
parent05dfbb7b0126b50a852d3be422f6c1d0bdf0f2e1 (diff)
downloadcgeo-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.java4
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) {