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: I41e6cbc5bf94161293c18e13b82cc237a5bc1335
This commit is contained in:
Tracy Zhou
2021-04-24 19:47:21 +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();