Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d532b68 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8195019 from a75f2ce2 to sc-qpr3-release

Change-Id: Ia8f03c9af7f97dd87f5822925f3939bb5bf9eb4e
parents 24a9252c a75f2ce2
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -462,11 +462,15 @@ public class TaskView extends FrameLayout implements Reusable {
        return getItemInfo(mTask);
    }

    protected WorkspaceItemInfo getItemInfo(Task task) {
        ComponentKey componentKey = TaskUtils.getLaunchComponentKeyForTask(task.key);
    protected WorkspaceItemInfo getItemInfo(@Nullable Task task) {
        WorkspaceItemInfo stubInfo = new WorkspaceItemInfo();
        stubInfo.itemType = LauncherSettings.Favorites.ITEM_TYPE_TASK;
        stubInfo.container = LauncherSettings.Favorites.CONTAINER_TASKSWITCHER;
        if (task == null) {
            return stubInfo;
        }

        ComponentKey componentKey = TaskUtils.getLaunchComponentKeyForTask(task.key);
        stubInfo.user = componentKey.user;
        stubInfo.intent = new Intent().setComponent(componentKey.componentName);
        stubInfo.title = task.title;