Merge "Revert "Finish the recents animation upon home rotation"" into sc-dev am: 0bd7763ccc

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14625480

Change-Id: I5c4ff3428b7d20a9ea9f6baf4fee2b15e28e879c
This commit is contained in:
Tracy Zhou
2021-05-18 18:20:45 +00:00
committed by Automerger Merge Worker
@@ -2615,16 +2615,6 @@ 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();