diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2011-11-15 19:08:40 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2011-11-15 19:08:40 +0100 |
| commit | d52238fdbc20aefec62edb384e548172d5999b2b (patch) | |
| tree | 0840a49f913208d64f40dd0f97377574a24b8b8f /main/src/cgeo/geocaching/VisitCacheActivity.java | |
| parent | cc8cd8438ad71a1315175dd2ac5c0a72c37c51c1 (diff) | |
| download | cgeo-d52238fdbc20aefec62edb384e548172d5999b2b.zip cgeo-d52238fdbc20aefec62edb384e548172d5999b2b.tar.gz cgeo-d52238fdbc20aefec62edb384e548172d5999b2b.tar.bz2 | |
new: allow offline log without any login data stored, fixes #793
Diffstat (limited to 'main/src/cgeo/geocaching/VisitCacheActivity.java')
| -rw-r--r-- | main/src/cgeo/geocaching/VisitCacheActivity.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/VisitCacheActivity.java b/main/src/cgeo/geocaching/VisitCacheActivity.java index 3b8b3e1..022209f 100644 --- a/main/src/cgeo/geocaching/VisitCacheActivity.java +++ b/main/src/cgeo/geocaching/VisitCacheActivity.java @@ -616,10 +616,18 @@ public class VisitCacheActivity extends cgLogForm { finish(); return; } + if (!Settings.isLogin()) { // allow offline logging + showToast(res.getString(R.string.err_login)); + return; + } } @Override public void run() { + if (!Settings.isLogin()) { + // enable only offline logging, don't get the current state of the cache + return; + } final Parameters params = new Parameters(); gettingViewstate = true; |
