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

Commit d24099eb authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Skip intermediate resizing when running swipe-pip transition" into...

Merge "Skip intermediate resizing when running swipe-pip transition" into udc-qpr-dev am: b7c5deb4 am: 56838727

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24309853



Change-Id: I2daf64c5c544c16099dc53c34423775fcb651375
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 5811ac6b 56838727
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -799,6 +799,14 @@ public class PipController implements PipTransitionController.PipTransitionCallb
    }

    private void onDisplayChangedUncheck(DisplayLayout layout, boolean saveRestoreSnapFraction) {
        if (mPipTransitionState.getInSwipePipToHomeTransition()) {
            // If orientation is changed when performing swipe-pip animation, DisplayLayout has
            // been updated in startSwipePipToHome. So it is unnecessary to update again when
            // receiving onDisplayConfigurationChanged. This also avoids TouchHandler.userResizeTo
            // update surface position in different orientation by the intermediate state. The
            // desired resize will be done by the end of transition.
            return;
        }
        Runnable updateDisplayLayout = () -> {
            final boolean fromRotation = Transitions.ENABLE_SHELL_TRANSITIONS
                    && mPipDisplayLayoutState.getDisplayLayout().rotation() != layout.rotation();