mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Removing global state from DeepShortcutManager
This makes DeepShortcutManager thread-safe and avoids any locks Change-Id: If4593b3541da6259591ff7a607efa58158006481
This commit is contained in:
@@ -317,9 +317,9 @@ public class LoaderTask implements Runnable {
|
||||
|
||||
// We can only query for shortcuts when the user is unlocked.
|
||||
if (userUnlocked) {
|
||||
List<ShortcutInfo> pinnedShortcuts =
|
||||
DeepShortcutManager.QueryResult pinnedShortcuts =
|
||||
mShortcutManager.queryForPinnedShortcuts(null, user);
|
||||
if (mShortcutManager.wasLastCallSuccess()) {
|
||||
if (pinnedShortcuts.wasSuccess()) {
|
||||
for (ShortcutInfo shortcut : pinnedShortcuts) {
|
||||
shortcutKeyToPinnedShortcuts.put(ShortcutKey.fromInfo(shortcut),
|
||||
shortcut);
|
||||
|
||||
Reference in New Issue
Block a user