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

Commit 5b49464d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 1bc0286e 04f34304
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;
                }
            }
        }
    }