Merge "Fixed an issue where notifications were invisible on AOD" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-23 04:15:38 +00:00
committed by Android (Google) Code Review

View File

@@ -177,7 +177,7 @@ public class NotificationShelf extends ActivatableNotificationView implements
mShelfState.yTranslation = Math.max(Math.min(viewEnd, maxShelfEnd) - mShelfState.height,
getFullyClosedTranslation());
mShelfState.zTranslation = ambientState.getBaseZHeight();
if (mAmbientState.isDark()) {
if (mAmbientState.isDark() && !mAmbientState.hasPulsingNotifications()) {
mShelfState.yTranslation = mAmbientState.getDarkTopPadding();
}
float openedAmount = (mShelfState.yTranslation - getFullyClosedTranslation())