Added option to go to previous conversation on closing conversation

This commit is contained in:
M66B
2019-07-26 10:23:34 +02:00
parent 4d3f19c5b3
commit f5ca9277c3
6 changed files with 94 additions and 41 deletions

View File

@@ -260,12 +260,12 @@ public class ApplicationEx extends Application {
static void upgrade(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
int version = prefs.getInt("version", BuildConfig.VERSION_CODE);
Log.i("Upgrading from " + version + " to " + BuildConfig.VERSION_CODE);
SharedPreferences.Editor editor = prefs.edit();
int version = prefs.getInt("version", BuildConfig.VERSION_CODE);
if (version < 468) {
Log.i("Upgrading from " + version + " to " + BuildConfig.VERSION_CODE);
editor.remove("notify_trash");
editor.remove("notify_archive");
editor.remove("notify_reply");
@@ -273,12 +273,16 @@ public class ApplicationEx extends Application {
editor.remove("notify_seen");
} else if (version < 601) {
Log.i("Upgrading from " + version + " to " + BuildConfig.VERSION_CODE);
editor.putBoolean("contact_images", prefs.getBoolean("autoimages", true));
editor.remove("autoimages");
} else if (version < 612) {
if (prefs.getBoolean("autonext", false))
editor.putString("onclose", "next");
editor.remove("autonext");
}
if (BuildConfig.DEBUG && false) {
editor.remove("app_support");
editor.remove("notify_archive");