commit | 83b82258018b418ec7a2e59d338fd35e21e19ecb | [log] [tgz] |
---|---|---|
author | Tracy Zhou <tracyzhou@google.com> | Tue May 18 01:24:15 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 18 01:24:15 2021 +0000 |
tree | 8c91ee62e3786dec6a695cbb03a4cbe835690a0a | |
parent | 7945a3e78ff931c863525c0ac0e065a3e7d8810f [diff] | |
parent | f9071f92efecad3fa36113b73fdfc78f5c7eba94 [diff] |
Merge "Finish the recents animation upon home rotation" into sc-dev am: f9071f92ef Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14441322 Change-Id: Idf5ecc060daabb365e090d2909e3ab571b190add
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();