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

Commit 7d6207e6 authored by Samuel Fufa's avatar Samuel Fufa Committed by Automerger Merge Worker
Browse files

Merge "Allow multiple hotseat restorations in single session" into...

Merge "Allow multiple hotseat restorations in single session" into ub-launcher3-rvc-qpr-dev am: 93802e26 am: 32f5e995

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193279

Change-Id: I34f81041d4368c2ea03d579cd1a96d20ebd65374
parents a1603ccd 32f5e995
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ import com.android.launcher3.provider.LauncherDbUtils;
 */
public class HotseatRestoreHelper {
    private final Launcher mLauncher;
    private boolean mBackupRestored = false;

    HotseatRestoreHelper(Launcher context) {
        mLauncher = context;
@@ -62,7 +61,6 @@ public class HotseatRestoreHelper {
     * Finds and restores a previously saved snapshow of Favorites table
     */
    public void restoreBackup() {
        if (mBackupRestored) return;
        MODEL_EXECUTOR.execute(() -> {
            try (LauncherDbUtils.SQLiteTransaction transaction = (LauncherDbUtils.SQLiteTransaction)
                    LauncherSettings.Settings.call(
@@ -78,7 +76,6 @@ public class HotseatRestoreHelper {
                        idp.numRows);
                backupTable.restoreFromCustomBackupTable(HYBRID_HOTSEAT_BACKUP_TABLE, true);
                transaction.commit();
                mBackupRestored = true;
                mLauncher.getModel().forceReload();
            }
        });