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

Commit ee3a7e90 authored by Alex Chau's avatar Alex Chau
Browse files

Revert "Add detailed exception for snappedIndex == -1 when dismissing tasks"

This reverts commit 8f19421a.

Reason for revert: logs no longer needed
Bug: 269956477

Change-Id: I5d3afb0a2bb5c143e6be808cd8f794d57965e2af
parent b0b8e3a5
Loading
Loading
Loading
Loading
+12 −26
Original line number Diff line number Diff line
@@ -3812,7 +3812,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
                                        taskViewIdArray.removeValue(
                                                finalNextFocusedTaskView.getTaskViewId());
                                    }
                                    try {
                                    if (snappedIndex < taskViewIdArray.size()) {
                                        taskViewIdToSnapTo = taskViewIdArray.get(snappedIndex);
                                    } else if (snappedIndex == taskViewIdArray.size()) {
@@ -3827,19 +3826,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
                                                    snappedIndex);
                                        }
                                    }
                                    } catch (ArrayIndexOutOfBoundsException e) {
                                        throw new IllegalStateException(
                                                "b/269956477 invalid snappedIndex"
                                                        + "\nsnappedTaskViewId: "
                                                        + snappedTaskViewId
                                                        + "\nfocusedTaskViewId: "
                                                        + mFocusedTaskViewId
                                                        + "\ntopRowIdArray: "
                                                        + getTopRowIdArray().toConcatString()
                                                        + "\nbottomRowIdArray: "
                                                        + getBottomRowIdArray().toConcatString(),
                                                e);
                                    }
                                }
                            }