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

Commit f9071f92 authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Finish the recents animation upon home rotation" into sc-dev

parents b83e8f61 38588dc2
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2617,6 +2617,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();