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

Commit 155e558b authored by Sam Cackett's avatar Sam Cackett Committed by Android (Google) Code Review
Browse files

Merge "Fix crash resulting from missing entry in the taskViewIdArray" into main

parents 8146b628 a24cb0e0
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