Keep previous version

This commit is contained in:
M66B
2019-12-22 08:47:32 +01:00
parent dbc24f8bdf
commit 429c5002b1

View File

@@ -204,7 +204,8 @@ public class ApplicationEx extends Application {
editor.remove("folder_sync");
}
editor.putInt("previous_version", version);
if (version < BuildConfig.VERSION_CODE)
editor.putInt("previous_version", version);
editor.putInt("version", BuildConfig.VERSION_CODE);
editor.apply();