From 38588dc23a68543d5f83f6253c402199bab0f134 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Wed, 5 May 2021 10:03:21 -0700 Subject: [PATCH] Finish the recents animation upon home rotation Fixes: 184054813 Test: manual Change-Id: I32eba85563b83ee9738696c526a1546008cd3a5d --- .../src/com/android/quickstep/views/RecentsView.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index dfe0c4347a..b5e34558d5 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -2592,6 +2592,16 @@ public abstract class RecentsView finishRecentsAnimation(true /* toRecents */, + this::onConfigurationChangedInternal)); + } else { + onConfigurationChangedInternal(); + } + } + + private void onConfigurationChangedInternal() { final int rotation = mActivity.getDisplay().getRotation(); if (mOrientationState.setRecentsRotation(rotation)) { updateOrientationHandler();