diff options
| author | rsudev <rasch@munin-soft.de> | 2013-03-16 12:26:04 +0100 |
|---|---|---|
| committer | rsudev <rasch@munin-soft.de> | 2013-03-16 12:26:04 +0100 |
| commit | 3c4add1feb0954600b9abb3ad7a0fee0122edcb5 (patch) | |
| tree | d21ee06c54280950c63c52b2fb214181a53d8d46 /main/src/cgeo/geocaching/VisitCacheActivity.java | |
| parent | e909ad150fcccf426e9ad7023d9e4526565c56c6 (diff) | |
| download | cgeo-3c4add1feb0954600b9abb3ad7a0fee0122edcb5.zip cgeo-3c4add1feb0954600b9abb3ad7a0fee0122edcb5.tar.gz cgeo-3c4add1feb0954600b9abb3ad7a0fee0122edcb5.tar.bz2 | |
Fixes #2531 - Auto-save now works as expected.
Copied saveLog(false) from onStop() also into finish(). List of caches
now gets refreshed, because saveLog() runs while VisitCacheActivity is
still running. saveLog(false) was also left in onStop(), because in
case the activity gets interrupted and finish() is not called, the log
will still be auto-saved.
Conflicts:
main/src/cgeo/geocaching/VisitCacheActivity.java
Diffstat (limited to 'main/src/cgeo/geocaching/VisitCacheActivity.java')
| -rw-r--r-- | main/src/cgeo/geocaching/VisitCacheActivity.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/VisitCacheActivity.java b/main/src/cgeo/geocaching/VisitCacheActivity.java index 25d36df..6f8ea92 100644 --- a/main/src/cgeo/geocaching/VisitCacheActivity.java +++ b/main/src/cgeo/geocaching/VisitCacheActivity.java @@ -419,9 +419,15 @@ public class VisitCacheActivity extends AbstractLoggingActivity implements DateD } @Override + public void finish() { + saveLog(false); + super.finish(); + } + + @Override public void onStop() { - super.onStop(); saveLog(false); + super.onStop(); } @Override |
