commit | 05660af4a5acd1716003b54f6429a2da7f07cd86 | [log] [tgz] |
---|---|---|
author | Tracy Zhou <tracyzhou@google.com> | Wed Apr 21 20:20:59 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Apr 21 20:20:59 2021 +0000 |
tree | c467cc6cb743074206541c4a854de65f2a37bf65 | |
parent | 4a3bcad7703d275c3544eac62dedf30e3064cf37 [diff] | |
parent | 1969cd154e5ba7d302d66f349862e6ce1e594db7 [diff] |
Merge "Finish recents animation upon home rotation" into sc-dev am: 1969cd154e Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14260273 Change-Id: I3f234b72049467e2ac0f68a5dc9cc3200ea7966e
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 150ae02..e4fa1aa 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -2340,6 +2340,15 @@ @Override protected void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); + if (LIVE_TILE.get() && mRunningTaskId != -1) { + switchToScreenshot( + () -> finishRecentsAnimation(true, this::onConfigurationChangedInternal)); + } else { + onConfigurationChangedInternal(); + } + } + + private void onConfigurationChangedInternal() { final int rotation = mActivity.getDisplay().getRotation(); if (mOrientationState.setRecentsRotation(rotation)) { updateOrientationHandler();