commit | 2b81647df111ef935e8de9ed89f124fcc1c27091 | [log] [tgz] |
---|---|---|
author | Tracy Zhou <tracyzhou@google.com> | Tue May 18 01:27:35 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 18 01:27:35 2021 +0000 |
tree | 8efd7d59d50f05f6eacda5bb3d54de6267065716 | |
parent | 3d0e5188054edc7d696ce00b364175fe8a09e40b [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: I0d95c462a4bc18152113200c8b089580622a6ef1
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();