From 0751929ec2ddd5f7ee193b60d2b59c0f5c69a036 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Fri, 18 May 2018 14:32:41 -0700 Subject: [PATCH] Making sure the task open animation runs for the correct user tile Bug: 79995913 Change-Id: I3223f25e3870bac526f8960ed3d00949650bca3b --- quickstep/src/com/android/quickstep/TaskUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/TaskUtils.java b/quickstep/src/com/android/quickstep/TaskUtils.java index d7fad439c5..2b0c98f939 100644 --- a/quickstep/src/com/android/quickstep/TaskUtils.java +++ b/quickstep/src/com/android/quickstep/TaskUtils.java @@ -98,12 +98,13 @@ public class TaskUtils { if (v.getTag() instanceof ItemInfo) { ItemInfo itemInfo = (ItemInfo) v.getTag(); ComponentName componentName = itemInfo.getTargetComponent(); + int userId = itemInfo.user.getIdentifier(); if (componentName != null) { for (int i = 0; i < recentsView.getChildCount(); i++) { TaskView taskView = recentsView.getPageAt(i); if (recentsView.isTaskViewVisible(taskView)) { - Task task = taskView.getTask(); - if (componentName.equals(task.key.getComponent())) { + Task.TaskKey key = taskView.getTask().key; + if (componentName.equals(key.getComponent()) && userId == key.userId) { return taskView; } }