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

Commit ee5d20f8 authored by Tony Huang's avatar Tony Huang Committed by Automerger Merge Worker
Browse files

Merge "Always using middle position to resize layout" into sc-dev am: 1591096a

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

Change-Id: Ia1c40b4bd80788d8a318b69c79c3fdfa3998a0e2
parents 96eeefcd 1591096a
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -146,10 +146,8 @@ public class LegacySplitScreenController implements DisplayController.OnDisplays
                            new LegacySplitDisplayLayout(mContext, displayLayout, mSplits);
                    sdl.rotateTo(toRotation);
                    mRotateSplitLayout = sdl;
                    final int position = isDividerVisible()
                            ? (mMinimized ? mView.mSnapTargetBeforeMinimized.position
                            : mView.getCurrentPosition())
                            // snap resets to middle target when not in split-mode
                    // snap resets to middle target when not minimized and rotation changed.
                    final int position = mMinimized ? mView.mSnapTargetBeforeMinimized.position
                            : sdl.getSnapAlgorithm().getMiddleTarget().position;
                    DividerSnapAlgorithm snap = sdl.getSnapAlgorithm();
                    final DividerSnapAlgorithm.SnapTarget target =