Changing DeepShortcutManager to have a singleton contructor instead

of getting it from LauncherAppState

This follows the design of other managers and makes it easier to access it
from other processes and non-ui thread.

Bug: 33032833
Change-Id: I8ad82ae5b6cc47bae885f9896985675c7dd0d5b8
This commit is contained in:
Sunny Goyal committed 2016-11-21 22:28:23 +05:30
1 parent aa8a871e33
commit dde4fd971e
9 files changed
+36 -31

No files matched your search

@@ -50,7 +50,7 @@ public class UserLockStateChangedTask extends ExtendedModelTask {
public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) {
Context context = app.getContext();
boolean isUserUnlocked = UserManagerCompat.getInstance(context).isUserUnlocked(mUser);
DeepShortcutManager deepShortcutManager = app.getShortcutManager();
DeepShortcutManager deepShortcutManager = DeepShortcutManager.getInstance(context);
HashMap<ShortcutKey, ShortcutInfoCompat> pinnedShortcuts = new HashMap<>();
if (isUserUnlocked) {