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

Commit 38588dc2 authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Finish the recents animation upon home rotation

Fixes: 184054813
Test: manual
Change-Id: I32eba85563b83ee9738696c526a1546008cd3a5d
parent 6dce7b63
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2592,6 +2592,16 @@ 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();