Merge "Fixed an issue where a notification could flicker" into oc-mr1-dev

am: b338f034e9

Change-Id: I9b78412ef7115a3e71cfe11766713787def4c6d4
This commit is contained in:
Selim Cinek
2017-09-11 20:19:15 +00:00
committed by android-build-merger

View File

@@ -380,6 +380,15 @@ public class NotificationShelf extends ActivatableNotificationView implements
}
}
@Override
public void setFakeShadowIntensity(float shadowIntensity, float outlineAlpha, int shadowYEnd,
int outlineTranslation) {
if (!mHasItemsInStableShelf) {
shadowIntensity = 0.0f;
}
super.setFakeShadowIntensity(shadowIntensity, outlineAlpha, shadowYEnd, outlineTranslation);
}
/**
* @return the icon amount how much this notification is in the shelf;
*/