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

Commit 54381056 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: I0d430a0e433f8933602445c089202cf71292f8d0
parents dc9ff360 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 =