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

Commit 2d43faba authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Don't update global table when upgrading secondary users' database.

Bug: 7722149
Change-Id: I0c1373cba316b924701136579083274eb6c9b1da
parent 2735795f
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -1507,6 +1507,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {

        if (upgradeVersion == 94) {
            // Add wireless charging started sound setting
            if (mUserHandle == UserHandle.USER_OWNER) {
                db.beginTransaction();
                SQLiteStatement stmt = null;
                try {
@@ -1519,6 +1520,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
                    db.endTransaction();
                    if (stmt != null) stmt.close();
                }
            }
            upgradeVersion = 95;
        }