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

Commit 37b03b9e authored by Matthew Ng's avatar Matthew Ng Committed by android-build-merger
Browse files

Merge "Fixed unminimizing during battery saving mode" into oc-dev

am: 5b49464d

Change-Id: Id5efa71298cd71bb91aa3f08fb4bfe4eff43a183
parents 9d08fca6 5b49464d
Loading
Loading
Loading
Loading
+15 −8
Original line number Diff line number Diff line
@@ -725,7 +725,8 @@ public class DividerView extends FrameLayout implements OnTouchListener,
            mMinimizedSnapAlgorithm = null;
            mDockedStackMinimized = minimized;
            initializeSnapAlgorithm();
            if (!mIsInMinimizeInteraction && minimized) {
            if (mIsInMinimizeInteraction != minimized) {
                if (minimized) {
                    mIsInMinimizeInteraction = true;
                    mDividerPositionBeforeMinimized = DockedDividerUtils.calculateMiddlePosition(
                            isHorizontalDivision(), mStableInsets, mDisplayWidth, mDisplayHeight,
@@ -733,6 +734,12 @@ public class DividerView extends FrameLayout implements OnTouchListener,

                    int position = mMinimizedSnapAlgorithm.getMiddleTarget().position;
                    resizeStack(position, position, mMinimizedSnapAlgorithm.getMiddleTarget());
                } else {
                    resizeStack(mDividerPositionBeforeMinimized, mDividerPositionBeforeMinimized,
                            mSnapAlgorithm.calculateNonDismissingSnapTarget(
                                    mDividerPositionBeforeMinimized));
                    mIsInMinimizeInteraction = false;
                }
            }
        }
    }