mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 21:24:34 +00:00
Small improvement
This commit is contained in:
parent
51f3f150d7
commit
8a166a5000
1 changed files with 3 additions and 1 deletions
|
@ -2632,7 +2632,9 @@ public abstract class DB extends RoomDatabase {
|
|||
logMigration(startVersion, endVersion);
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
String startup = prefs.getString("startup", "unified");
|
||||
if (!"folders".equals(startup))
|
||||
if ("folders".equals(startup))
|
||||
db.execSQL("UPDATE `folder` SET `hide_seen` = 0 WHERE `unified` = 0");
|
||||
else
|
||||
db.execSQL("UPDATE `folder` SET `hide_seen` = 0");
|
||||
}
|
||||
}).addMigrations(new Migration(998, 999) {
|
||||
|
|
Loading…
Reference in a new issue