From 9d5ee199528b7b74640c2c6e03914f3e515b089f Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Tue, 20 Apr 2021 23:07:31 -0700 Subject: [PATCH] Finish recents animation upon home rotation Fixes: 184054813 Test: manual Change-Id: Iba819ad1d7ea72aedd15b98d9a9a48c384d5fe1e --- .../src/com/android/quickstep/views/RecentsView.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 150ae02cf0..e4fa1aa831 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -2340,6 +2340,15 @@ public abstract class RecentsView finishRecentsAnimation(true, this::onConfigurationChangedInternal)); + } else { + onConfigurationChangedInternal(); + } + } + + private void onConfigurationChangedInternal() { final int rotation = mActivity.getDisplay().getRotation(); if (mOrientationState.setRecentsRotation(rotation)) { updateOrientationHandler();