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

Commit a42681f6 authored by Sunny Goyal's avatar Sunny Goyal Committed by Android (Google) Code Review
Browse files

Merge "Fix bug where we incorrectly change the default profile id of the...

Merge "Fix bug where we incorrectly change the default profile id of the database." into ub-launcher3-qt-qpr1-dev
parents 78ebf57e 768cb139
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -173,12 +173,6 @@ public class RestoreDbTask {
        values.put(Favorites.PROFILE_ID, newProfileId);
        db.update(Favorites.TABLE_NAME, values, "profileId = ?",
                new String[]{Long.toString(oldProfileId)});

        // Change default value of the column.
        db.execSQL("ALTER TABLE favorites RENAME TO favorites_old;");
        Favorites.addTableToDb(db, newProfileId, false);
        db.execSQL("INSERT INTO favorites SELECT * FROM favorites_old;");
        dropTable(db, "favorites_old");
    }