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
This commit is contained in:
Tracy Zhou
2021-05-18 01:24:15 +00:00
committed by Automerger Merge Worker
@@ -2617,6 +2617,16 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
@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();