Small improvement

This commit is contained in:
M66B 2023-01-13 18:18:53 +01:00
parent 51f3f150d7
commit 8a166a5000
1 changed files with 3 additions and 1 deletions

View File

@ -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) {