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

Commit f9db9d32 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Notify TaskViews of updated orientation state" into...

Merge "Notify TaskViews of updated orientation state" into ub-launcher3-rvc-qpr-dev am: dbca5a41 am: 3857d264

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12142279

Change-Id: I1085f9a8652a38c3daa0fb83b4de2d8d84ba4364
parents d1da8704 3857d264
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -376,7 +376,7 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
                    mOrientationState.setMultiWindowMode(inMultiWindowMode);
                    setLayoutRotation(mOrientationState.getTouchRotation(),
                            mOrientationState.getDisplayRotation());
                    rotateAllChildTasks();
                    updateChildTaskOrientations();
                }
                if (!inMultiWindowMode && mOverviewStateEnabled) {
                    // TODO: Re-enable layout transitions for addition of the unpinned task
@@ -1077,7 +1077,7 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
        pa.addListener(AnimationSuccessListener.forRunnable(() -> {
            setLayoutRotation(newRotation, mOrientationState.getDisplayRotation());
            mActivity.getDragLayer().recreateControllers();
            rotateAllChildTasks();
            updateChildTaskOrientations();
            setRecentsChangedOrientation(false).start();
        }));
        pa.start();
@@ -1098,7 +1098,7 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
    }


    private void rotateAllChildTasks() {
    private void updateChildTaskOrientations() {
        for (int i = 0; i < getTaskViewCount(); i++) {
            getTaskViewAt(i).setOrientationState(mOrientationState);
        }
@@ -1683,6 +1683,7 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
                || mOrientationState.getRecentsActivityRotation() != ROTATION_0;
        mActionsView.updateHiddenFlags(HIDDEN_NON_ZERO_ROTATION,
                !mOrientationState.canRecentsActivityRotate() && isInLandscape);
        updateChildTaskOrientations();
        resetPaddingFromTaskSize();
        requestLayout();
        // Reapply the current page to update page scrolls.