aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/settings
diff options
context:
space:
mode:
authorrsudev <rasch@munin-soft.de>2014-05-17 22:28:08 +0200
committerrsudev <rasch@munin-soft.de>2014-05-18 22:41:07 +0200
commit7fe7a6331adc4ab13674b3272b61cd20c80772f6 (patch)
tree0818f1b567c0373af2e9d8b9821e8817b1060559 /main/src/cgeo/geocaching/settings
parent916992dc8398db364927a50a8ceb46f3053fce96 (diff)
downloadcgeo-7fe7a6331adc4ab13674b3272b61cd20c80772f6.zip
cgeo-7fe7a6331adc4ab13674b3272b61cd20c80772f6.tar.gz
cgeo-7fe7a6331adc4ab13674b3272b61cd20c80772f6.tar.bz2
Implements #96, Change log / What's new popup on start
- Checks the last version from preferences with current - Stores current version - switches to about - changelog on version change
Diffstat (limited to 'main/src/cgeo/geocaching/settings')
-rw-r--r--main/src/cgeo/geocaching/settings/Settings.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/settings/Settings.java b/main/src/cgeo/geocaching/settings/Settings.java
index a527fc5..474558d 100644
--- a/main/src/cgeo/geocaching/settings/Settings.java
+++ b/main/src/cgeo/geocaching/settings/Settings.java
@@ -1008,4 +1008,12 @@ public class Settings {
return getString(R.string.pref_ec_icons, "1");
}
+ /* Store last version for the changelog display */
+ public static int getLastChangelogVersion() {
+ return getInt(R.string.pref_changelog_last_version, 0);
+ }
+
+ public static void setLastChangelogVersion(int version) {
+ putInt(R.string.pref_changelog_last_version, version);
+ }
}