Fix crash resulting from missing entry in the taskViewIdArray
Bug: 338057269 Test: Manual Flag: NA Change-Id: Ifa99fe87423ba75f52c43248c8fd730667803d1a
This commit is contained in:
@@ -3887,7 +3887,8 @@ public abstract class RecentsView<CONTAINER_TYPE extends Context & RecentsViewCo
|
||||
taskViewIdArray.removeValue(
|
||||
finalNextFocusedTaskView.getTaskViewId());
|
||||
}
|
||||
if (snappedIndex < taskViewIdArray.size()) {
|
||||
if (snappedIndex >= 0
|
||||
&& snappedIndex < taskViewIdArray.size()) {
|
||||
taskViewIdToSnapTo = taskViewIdArray.get(snappedIndex);
|
||||
} else if (snappedIndex == taskViewIdArray.size()) {
|
||||
// If the snapped task is the last item from the
|
||||
|
||||
Reference in New Issue
Block a user