Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f565bc11 authored by Sara Ting's avatar Sara Ting
Browse files

Save version to shared prefs upon startup.

Change-Id: Id394cb7c78c373acd3b5a9aaae43e50f64767383
parent fa1149d1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -28,5 +28,10 @@ public class CalendarApplication extends Application {
         * service, etc. of Calendar
         */
        GeneralPreferences.setDefaultValues(this);

        // Save the version number, for upcoming 'What's new' screen.  This will be later be
        // moved to that implementation.
        Utils.setSharedPreference(this, GeneralPreferences.KEY_VERSION,
                Utils.getVersionCode(this));
    }
}
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ public class GeneralPreferences extends PreferenceFragment implements
    public static final int REMINDER_DEFAULT_TIME = 10; // in minutes

    public static final String KEY_DEFAULT_CELL_HEIGHT = "preferences_default_cell_height";
    public static final String KEY_VERSION = "preferences_version";

    /** Key to SharePreference for default view (CalendarController.ViewType) */
    public static final String KEY_START_VIEW = "preferred_startView";