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

Commit 3a196021 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 am: 840dafe9

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

Change-Id: Ie5a40d01ea0b2e0e410b7ba52401cddb08414e4f
parents a6e8273b 840dafe9
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 =