From 7ba6cadf27d0014882e1ffc2d5ac80cd8eaea582 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Thu, 23 Jun 2022 12:05:42 +0100 Subject: [PATCH] Check null before getting DeviceProfile in AbsSwipeUpHandler Fix: 236677962 Test: manual Change-Id: Ibf3dbc6db509a54c87dc4bd64a7c7ea213870708 --- quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index b3ef71ea46..4a36f6e428 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -1136,7 +1136,7 @@ public abstract class AbsSwipeUpHandler, mInputConsumerProxy.enable(); } if (endTarget == HOME) { - duration = mActivity.getDeviceProfile().isTaskbarPresent + duration = mActivity != null && mActivity.getDeviceProfile().isTaskbarPresent ? StaggeredWorkspaceAnim.DURATION_TASKBAR_MS : StaggeredWorkspaceAnim.DURATION_MS; // Early detach the nav bar once the endTarget is determined as HOME