Merge "Fix crash caused by accessing finishing task" into tm-qpr-dev
This commit is contained in:
@@ -520,7 +520,7 @@ class RecentsAnimation implements RecentsAnimationCallbacks, OnRootTaskOrderChan
|
||||
}
|
||||
|
||||
private boolean matchesTarget(Task task) {
|
||||
return task.mUserId == mUserId
|
||||
return task.getNonFinishingActivityCount() > 0 && task.mUserId == mUserId
|
||||
&& task.getBaseIntent().getComponent().equals(mTargetIntent.getComponent());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user