Loading packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java +7 −6 Original line number Diff line number Diff line Loading @@ -550,8 +550,8 @@ public class NotificationChildrenContainer extends ViewGroup { firstOverflowIndex = getMaxAllowedVisibleChildren(true /* likeCollapsed */); } boolean childrenExpanded = !mContainingNotification.isGroupExpansionChanging() && mChildrenExpanded; boolean childrenExpandedAndNotAnimating = mChildrenExpanded && !mContainingNotification.isGroupExpansionChanging(); for (int i = 0; i < childCount; i++) { ExpandableNotificationRow child = mChildren.get(i); if (!firstChild) { Loading @@ -559,7 +559,7 @@ public class NotificationChildrenContainer extends ViewGroup { yPosition += NotificationUtils.interpolate(mChildPadding, mDividerHeight, expandFactor); } else { yPosition += childrenExpanded ? mDividerHeight : mChildPadding; yPosition += mChildrenExpanded ? mDividerHeight : mChildPadding; } } else { if (expandingToExpandedGroup) { Loading @@ -568,7 +568,7 @@ public class NotificationChildrenContainer extends ViewGroup { mNotificatonTopPadding + mDividerHeight, expandFactor); } else { yPosition += childrenExpanded ? mNotificatonTopPadding + mDividerHeight : 0; yPosition += mChildrenExpanded ? mNotificatonTopPadding + mDividerHeight : 0; } firstChild = false; } Loading @@ -580,7 +580,8 @@ public class NotificationChildrenContainer extends ViewGroup { childState.hidden = false; // When the group is expanded, the children cast the shadows rather than the parent // so use the parent's elevation here. childState.zTranslation = childrenExpanded && mEnableShadowOnChildNotifications childState.zTranslation = (childrenExpandedAndNotAnimating && mEnableShadowOnChildNotifications) ? mContainingNotification.getTranslationZ() : 0; childState.dimmed = parentState.dimmed; Loading Loading @@ -634,7 +635,7 @@ public class NotificationChildrenContainer extends ViewGroup { mHeaderViewState = new ViewState(); } mHeaderViewState.initFrom(mNotificationHeader); mHeaderViewState.zTranslation = childrenExpanded mHeaderViewState.zTranslation = childrenExpandedAndNotAnimating ? mContainingNotification.getTranslationZ() : 0; } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java +7 −6 Original line number Diff line number Diff line Loading @@ -550,8 +550,8 @@ public class NotificationChildrenContainer extends ViewGroup { firstOverflowIndex = getMaxAllowedVisibleChildren(true /* likeCollapsed */); } boolean childrenExpanded = !mContainingNotification.isGroupExpansionChanging() && mChildrenExpanded; boolean childrenExpandedAndNotAnimating = mChildrenExpanded && !mContainingNotification.isGroupExpansionChanging(); for (int i = 0; i < childCount; i++) { ExpandableNotificationRow child = mChildren.get(i); if (!firstChild) { Loading @@ -559,7 +559,7 @@ public class NotificationChildrenContainer extends ViewGroup { yPosition += NotificationUtils.interpolate(mChildPadding, mDividerHeight, expandFactor); } else { yPosition += childrenExpanded ? mDividerHeight : mChildPadding; yPosition += mChildrenExpanded ? mDividerHeight : mChildPadding; } } else { if (expandingToExpandedGroup) { Loading @@ -568,7 +568,7 @@ public class NotificationChildrenContainer extends ViewGroup { mNotificatonTopPadding + mDividerHeight, expandFactor); } else { yPosition += childrenExpanded ? mNotificatonTopPadding + mDividerHeight : 0; yPosition += mChildrenExpanded ? mNotificatonTopPadding + mDividerHeight : 0; } firstChild = false; } Loading @@ -580,7 +580,8 @@ public class NotificationChildrenContainer extends ViewGroup { childState.hidden = false; // When the group is expanded, the children cast the shadows rather than the parent // so use the parent's elevation here. childState.zTranslation = childrenExpanded && mEnableShadowOnChildNotifications childState.zTranslation = (childrenExpandedAndNotAnimating && mEnableShadowOnChildNotifications) ? mContainingNotification.getTranslationZ() : 0; childState.dimmed = parentState.dimmed; Loading Loading @@ -634,7 +635,7 @@ public class NotificationChildrenContainer extends ViewGroup { mHeaderViewState = new ViewState(); } mHeaderViewState.initFrom(mNotificationHeader); mHeaderViewState.zTranslation = childrenExpanded mHeaderViewState.zTranslation = childrenExpandedAndNotAnimating ? mContainingNotification.getTranslationZ() : 0; } Loading