From 8b58edf8ec8a8ef4f72cdc3eedb9c3b2b960d556 Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Mon, 17 May 2021 22:33:18 -0700 Subject: [PATCH] Finish the recents animation upon home rotation Fixes: 14613421 Test: presubmit Change-Id: I4165e6da80aa0272fa4a58046521dbd86518379c --- .../com/android/quickstep/views/RecentsView.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 83d15f7c5a..4b374401bd 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -389,6 +389,8 @@ public abstract class RecentsView finishRecentsAnimation(true /* toRecents */, + this::onConfigurationChangedInternal)); + mEnableDrawingLiveTile = false; + } else { + onConfigurationChangedInternal(); + } + mOrientation = newConfig.orientation; + } + + private void onConfigurationChangedInternal() { final int rotation = mActivity.getDisplay().getRotation(); if (mOrientationState.setRecentsRotation(rotation)) { updateOrientationHandler();