Merge "Don't show the shade background for heads up notifications" into nyc-dev
This commit is contained in:
@@ -152,8 +152,10 @@ public class StackScrollAlgorithm {
|
|||||||
float newYTranslation = state.yTranslation;
|
float newYTranslation = state.yTranslation;
|
||||||
float newHeight = state.height;
|
float newHeight = state.height;
|
||||||
float newNotificationEnd = newYTranslation + newHeight;
|
float newNotificationEnd = newYTranslation + newHeight;
|
||||||
|
boolean isHeadsUp = (child instanceof ExpandableNotificationRow)
|
||||||
if (newYTranslation < previousNotificationEnd) {
|
&& ((ExpandableNotificationRow) child).isPinned();
|
||||||
|
if (newYTranslation < previousNotificationEnd && ambientState.isShadeExpanded()
|
||||||
|
&& !isHeadsUp) {
|
||||||
// The previous view is overlapping on top, clip!
|
// The previous view is overlapping on top, clip!
|
||||||
float overlapAmount = previousNotificationEnd - newYTranslation;
|
float overlapAmount = previousNotificationEnd - newYTranslation;
|
||||||
state.clipTopAmount = (int) overlapAmount;
|
state.clipTopAmount = (int) overlapAmount;
|
||||||
|
|||||||
Reference in New Issue
Block a user