mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Storing BitmapInfo instead of icon and color directly in itemInfo
This will allow subclassing BitmapInfo to support custom icon/dynamic icons which can be loaded on the background thread instead of going through IconFactory which runs on UiThread Change-Id: Ieced6e91330bdff1b505826d097a8df711dfe967
This commit is contained in:
@@ -93,8 +93,8 @@ public class ShortcutsChangedTask extends BaseModelUpdateTask {
|
||||
// If the shortcut is pinned but no longer has an icon in the system,
|
||||
// keep the current icon instead of reverting to the default icon.
|
||||
LauncherIcons li = LauncherIcons.obtain(context);
|
||||
workspaceItemInfo.applyFrom(li.createShortcutIcon(fullDetails, true,
|
||||
() -> workspaceItemInfo));
|
||||
workspaceItemInfo.bitmap = li.createShortcutIcon(
|
||||
fullDetails, true, () -> workspaceItemInfo);
|
||||
li.recycle();
|
||||
updatedWorkspaceItemInfos.add(workspaceItemInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user