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

This commit is contained in:
Selim Cinek
2017-09-11 19:58:17 +00:00
committed by Android (Google) Code Review

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; * @return the icon amount how much this notification is in the shelf;
*/ */