diff options
author | Bananeweizen <Bananeweizen@gmx.de> | 2012-02-16 08:10:19 +0100 |
---|---|---|
committer | Bananeweizen <Bananeweizen@gmx.de> | 2012-02-16 08:10:19 +0100 |
commit | 165910f327630231b131f6890df0defae28775ce (patch) | |
tree | e1fc08f4237d6b3d321b952874cfc1ec4523db69 /main/src/cgeo/geocaching/VisitCacheActivity.java | |
parent | b166652df38ac6c4534856ead21acd5bfb308a5a (diff) | |
download | cgeo-165910f327630231b131f6890df0defae28775ce.zip cgeo-165910f327630231b131f6890df0defae28775ce.tar.gz cgeo-165910f327630231b131f6890df0defae28775ce.tar.bz2 |
refactoring: use underscore in symbolic constants
* otherwise they are not readable
Diffstat (limited to 'main/src/cgeo/geocaching/VisitCacheActivity.java')
-rw-r--r-- | main/src/cgeo/geocaching/VisitCacheActivity.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/VisitCacheActivity.java b/main/src/cgeo/geocaching/VisitCacheActivity.java index 6ee487a..6d0097a 100644 --- a/main/src/cgeo/geocaching/VisitCacheActivity.java +++ b/main/src/cgeo/geocaching/VisitCacheActivity.java @@ -258,7 +258,7 @@ public class VisitCacheActivity extends AbstractActivity implements DateDialog.D geocode = app.getGeocode(cacheid); } - cache = cgeoapplication.getInstance().loadCache(geocode, LoadFlags.LOADCACHEORDB); + cache = cgeoapplication.getInstance().loadCache(geocode, LoadFlags.LOAD_CACHE_OR_DB); if (StringUtils.isNotBlank(cache.getName())) { setTitle(res.getString(R.string.log_new_log) + ": " + cache.getName()); @@ -716,9 +716,9 @@ public class VisitCacheActivity extends AbstractActivity implements DateDialog.D } if (cache != null) { - app.saveCache(cache, EnumSet.of(SaveFlag.SAVECACHE)); + app.saveCache(cache, EnumSet.of(SaveFlag.SAVE_CACHE)); } else { - app.removeCache(geocode, EnumSet.of(RemoveFlag.REMOVECACHE)); + app.removeCache(geocode, EnumSet.of(RemoveFlag.REMOVE_CACHE)); } } |