Small improvement

pull/212/head
M66B 2 years ago
parent 51f3f150d7
commit 8a166a5000

@ -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…
Cancel
Save