From a24cb0e0fc09226b223d5fa0cacbeebd54e5124f Mon Sep 17 00:00:00 2001 From: samcackett Date: Mon, 13 May 2024 18:20:51 +0100 Subject: [PATCH] Fix crash resulting from missing entry in the taskViewIdArray Bug: 338057269 Test: Manual Flag: NA Change-Id: Ifa99fe87423ba75f52c43248c8fd730667803d1a --- quickstep/src/com/android/quickstep/views/RecentsView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 731b839dd6..39448e9039 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -3887,7 +3887,8 @@ public abstract class RecentsView= 0 + && snappedIndex < taskViewIdArray.size()) { taskViewIdToSnapTo = taskViewIdArray.get(snappedIndex); } else if (snappedIndex == taskViewIdArray.size()) { // If the snapped task is the last item from the