Merge "Changing DeepShortcutManager to have a singleton contructor instead of getting it from LauncherAppState" into ub-launcher3-master

This commit is contained in:
Sunny Goyal authored and Android (Google) Code Review committed 2016-11-21 17:07:05 +00:00
commit d423a8b868
9 files changed
+36 -31

No files matched your search

+2 -1
View File
@@ -31,6 +31,7 @@ import com.android.launcher3.compat.UserHandleCompat;
import com.android.launcher3.compat.UserManagerCompat;
import com.android.launcher3.folder.FolderIcon;
import com.android.launcher3.graphics.LauncherIcons;
import com.android.launcher3.shortcuts.DeepShortcutManager;
import com.android.launcher3.shortcuts.ShortcutInfoCompat;
import com.android.launcher3.util.ContentWriter;
@@ -295,7 +296,7 @@ public class ShortcutInfo extends ItemInfo {
// TODO: Use cache for this
LauncherAppState launcherAppState = LauncherAppState.getInstance();
Drawable unbadgedDrawable = launcherAppState.getShortcutManager()
Drawable unbadgedDrawable = DeepShortcutManager.getInstance(context)
.getShortcutIconDrawable(shortcutInfo,
launcherAppState.getInvariantDeviceProfile().fillResIconDpi);