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

Commit 0f8787db authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Revert "Finish recents animation upon home rotation"

This reverts commit 9d5ee199.

Reason for revert: Broke a tapl test

Change-Id: Iafc513ca64f751d09c8606c072b29c589f030ad6
parent 9d5ee199
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -2340,15 +2340,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();