Fixed upgrade

This commit is contained in:
M66B 2019-05-21 14:28:38 +02:00
parent a829141c8e
commit bb60b16472
1 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,8 @@ public class ApplicationEx extends Application {
static void upgrade(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
int version = prefs.getInt("version", 468);
if (version < BuildConfig.VERSION_CODE) {
int version = prefs.getInt("version", BuildConfig.VERSION_CODE);
if (version < 468) {
Log.i("Upgrading from " + version + " to " + BuildConfig.VERSION_CODE);
SharedPreferences.Editor editor = prefs.edit();