mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Making sure the task open animation runs for the correct user tile
Bug: 79995913 Change-Id: I3223f25e3870bac526f8960ed3d00949650bca3b
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user