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

Commit be35e4c6 authored by Charlie Anderson's avatar Charlie Anderson
Browse files

Adds support to restore pinned shortcuts from deferred restore in Launcher.

Currently only works for 3P app shortcuts.

Bug: 298399860
Test: locally tested deferred restore
Change-Id: Ieee369af6d32ae6002ff9c47b49ed65253a453cb
parent 604b93e5
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -209,9 +209,8 @@ class ShortcutUser {
        if (ret == null) {
        if (ret == null) {
            ret = new ShortcutLauncher(this, mUserId, packageName, launcherUserId);
            ret = new ShortcutLauncher(this, mUserId, packageName, launcherUserId);
            mLaunchers.put(key, ret);
            mLaunchers.put(key, ret);
        } else {
            ret.attemptToRestoreIfNeededAndSave();
        }
        }
        ret.attemptToRestoreIfNeededAndSave();
        return ret;
        return ret;
    }
    }