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

Commit a24cb0e0 authored by samcackett's avatar samcackett
Browse files

Fix crash resulting from missing entry in the taskViewIdArray

Bug: 338057269
Test: Manual
Flag: NA
Change-Id: Ifa99fe87423ba75f52c43248c8fd730667803d1a
parent fa09b124
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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