diff options
| author | 2016-06-27 20:44:55 +0000 | |
|---|---|---|
| committer | 2016-06-27 20:44:56 +0000 | |
| commit | e85843224196e92e67c1330c9eabd5cf13eb1966 (patch) | |
| tree | 01967c0f51910664d5baac2fc3846d76d14e3dc8 | |
| parent | 95fbc2de1b378f3d77385839c5535a5b6b3b5d06 (diff) | |
| parent | 0fdf574bc891a0f98b17159ee9156dae4044577c (diff) | |
Merge "Fix smooth panel deceleration" into nyc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java index 5eaea90479ce..87e87c8e9bb3 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java @@ -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; |