Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7511b338 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Revert "Finish the recents animation upon home rotation"

This reverts commit 38588dc2.

Reason for revert: b/188541715
Fixes: 188541715

Change-Id: I4d85ced55e1a9a4ca64f9c9a855abbfec9f306bb
parent 38588dc2
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -2592,16 +2592,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();