From de6819a453180bd7fd4ec63d21d09b36b9b7acc9 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Tue, 20 Jul 2021 11:07:50 +0100 Subject: [PATCH] Check if running task is null in onPrepareGestureEndAnimation - The crash happen when swiping to overview from home without any task in recents - A simple null check fixes the issue Fix: 194166137 Test: FallbackRecentsTest#goToOverviewFromHome Change-Id: I9344a96a4a78fcfc88d2ad53e44ecd43b23114d5 --- quickstep/src/com/android/quickstep/views/RecentsView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index b8a38adeb6..e128942dc4 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -1792,7 +1792,7 @@ public abstract class RecentsView