diff options
Diffstat (limited to 'main/src/cgeo/geocaching/cgeo.java')
-rw-r--r-- | main/src/cgeo/geocaching/cgeo.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/cgeo.java b/main/src/cgeo/geocaching/cgeo.java index 525d935..d2a1766 100644 --- a/main/src/cgeo/geocaching/cgeo.java +++ b/main/src/cgeo/geocaching/cgeo.java @@ -49,7 +49,7 @@ public class cgeo extends AbstractActivity { private static final int SCAN_REQUEST_CODE = 1; private static final int MENU_OPEN_LIST = 100; - private Integer version = null; + private int version = 0; private cgGeo geo = null; private UpdateLocationCallback geoUpdate = new update(); private TextView navType = null; @@ -721,7 +721,7 @@ public class cgeo extends AbstractActivity { app.cleanDatabase(more); cleanupRunning = false; - if (version != null && version > 0) { + if (version > 0) { SharedPreferences.Editor edit = prefs.edit(); edit.putInt("version", version); edit.commit(); |