mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 23:36:47 +00:00
Pass user id with call to get icon from task description
Bug: 145708947
Test: Manual
Change-Id: Ic7da3d36af490ea568481576e26c927020659eda
(cherry picked from commit a8dee18ff1)
This commit is contained in:
@@ -48,6 +48,7 @@ import com.android.systemui.shared.recents.model.Task;
|
||||
import com.android.systemui.shared.recents.model.Task.TaskKey;
|
||||
import com.android.systemui.shared.system.ActivityManagerWrapper;
|
||||
import com.android.systemui.shared.system.PackageManagerWrapper;
|
||||
import com.android.systemui.shared.system.TaskDescriptionCompat;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
@@ -140,7 +141,7 @@ public class TaskIconCache {
|
||||
|
||||
// Load icon
|
||||
// TODO: Load icon resource (b/143363444)
|
||||
Bitmap icon = desc.getIcon();
|
||||
Bitmap icon = TaskDescriptionCompat.getIcon(desc, key.userId);
|
||||
if (icon != null) {
|
||||
entry.icon = new FastBitmapDrawable(getBitmapInfo(
|
||||
new BitmapDrawable(mContext.getResources(), icon),
|
||||
|
||||
Reference in New Issue
Block a user