Merge "Revert "Finish recents animation upon home rotation"" into sc-dev am: 60a4a0b33d

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

Change-Id: Ib2de0ae3c8964ae2ec5a7f71fe43b59d5c020c75
This commit is contained in:
Tracy Zhou
2021-04-24 19:45:31 +00:00
committed by Automerger Merge Worker
@@ -2515,15 +2515,6 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
@Override
protected void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
if (LIVE_TILE.get() && mRunningTaskId != -1) {
switchToScreenshot(
() -> finishRecentsAnimation(true, this::onConfigurationChangedInternal));
} else {
onConfigurationChangedInternal();
}
}
private void onConfigurationChangedInternal() {
final int rotation = mActivity.getDisplay().getRotation();
if (mOrientationState.setRecentsRotation(rotation)) {
updateOrientationHandler();