Merge \\"Fix smooth panel deceleration\\" into nyc-dev am: e858432241
am: f4704889a6
Change-Id: I31b28f404cf34ec451f5938eeb97321743bb6cdd
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user