commit | 8b9c993a7b15b1befcfe63a8d3c14e3da8ecb0a4 | [log] [tgz] |
---|---|---|
author | Tracy Zhou <tracyzhou@google.com> | Thu May 20 04:38:58 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu May 20 04:38:58 2021 +0000 |
tree | 8646ee98b1a293cb8091765e1e00accafc6f0fbd | |
parent | 8fb6e533e725422e980e338f07c3b92385e38c65 [diff] | |
parent | 83b82258018b418ec7a2e59d338fd35e21e19ecb [diff] |
Merge "Finish the recents animation upon home rotation" into sc-dev am: f9071f92ef am: 83b8225801 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14441322 Change-Id: If5e270dd109b28aebb2e7ea2f5482c168474d908
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 7cd2a6a..67f9063 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -2617,6 +2617,16 @@ @Override protected void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); + if (LIVE_TILE.get()) { + switchToScreenshot( + () -> finishRecentsAnimation(true /* toRecents */, + this::onConfigurationChangedInternal)); + } else { + onConfigurationChangedInternal(); + } + } + + private void onConfigurationChangedInternal() { final int rotation = mActivity.getDisplay().getRotation(); if (mOrientationState.setRecentsRotation(rotation)) { updateOrientationHandler();