Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 04e6827a authored by Christopher Tate's avatar Christopher Tate
Browse files

Fix settings db update sequence

The 'global' table only exists in the owner-user db instance; make
sure to apply global-setting update steps only when bringing up that
instance.

Bug 18069830

Change-Id: I843eabe710d9487de94690921d61adb181b45ed2
parent 95dc663d
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -1829,6 +1829,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
        }

        if (upgradeVersion < 114) {
            if (mUserHandle == UserHandle.USER_OWNER) {
                db.beginTransaction();
                SQLiteStatement stmt = null;
                try {
@@ -1840,6 +1841,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
                    db.endTransaction();
                    if (stmt != null) stmt.close();
                }
            }
            upgradeVersion = 114;
        }
        // *** Remember to update DATABASE_VERSION above!