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

Commit dd56b1cb authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Merge \\"Fix smooth panel deceleration\\" into nyc-dev am: e8584322

am: 573e85ff

Change-Id: Ifd3c5ce0f2857d30a1fd9b632a2fcc0522cedf70
parents f814c237 573e85ff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -154,8 +154,8 @@ public class StackScrollAlgorithm {
            float newNotificationEnd = newYTranslation + newHeight;
            boolean isHeadsUp = (child instanceof ExpandableNotificationRow)
                    && ((ExpandableNotificationRow) child).isPinned();
            if (newYTranslation < previousNotificationEnd && ambientState.isShadeExpanded()
                    && !isHeadsUp) {
            if (newYTranslation < previousNotificationEnd
                    && (!isHeadsUp || ambientState.isShadeExpanded())) {
                // The previous view is overlapping on top, clip!
                float overlapAmount = previousNotificationEnd - newYTranslation;
                state.clipTopAmount = (int) overlapAmount;