Loading packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +4 −3 Original line number Diff line number Diff line Loading @@ -760,7 +760,9 @@ public class NotificationStackScrollLayout extends ViewGroup } private void updateClippingToTopRoundedCorner() { Float clipStart = (float) mTopPadding + mAmbientState.getExpandAnimationTopChange(); Float clipStart = (float) mTopPadding + mStackTranslation + mAmbientState.getExpandAnimationTopChange(); Float clipEnd = clipStart + mCornerRadius; boolean first = true; for (int i = 0; i < getChildCount(); i++) { Loading @@ -769,8 +771,7 @@ public class NotificationStackScrollLayout extends ViewGroup continue; } float start = child.getTranslationY(); float end = start + Math.max(child.getActualHeight() - child.getClipBottomAmount(), 0); float end = start + child.getActualHeight(); boolean clip = clipStart > start && clipStart < end || clipEnd >= start && clipEnd <= end; clip &= !(first && mOwnScrollY == 0); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +4 −3 Original line number Diff line number Diff line Loading @@ -760,7 +760,9 @@ public class NotificationStackScrollLayout extends ViewGroup } private void updateClippingToTopRoundedCorner() { Float clipStart = (float) mTopPadding + mAmbientState.getExpandAnimationTopChange(); Float clipStart = (float) mTopPadding + mStackTranslation + mAmbientState.getExpandAnimationTopChange(); Float clipEnd = clipStart + mCornerRadius; boolean first = true; for (int i = 0; i < getChildCount(); i++) { Loading @@ -769,8 +771,7 @@ public class NotificationStackScrollLayout extends ViewGroup continue; } float start = child.getTranslationY(); float end = start + Math.max(child.getActualHeight() - child.getClipBottomAmount(), 0); float end = start + child.getActualHeight(); boolean clip = clipStart > start && clipStart < end || clipEnd >= start && clipEnd <= end; clip &= !(first && mOwnScrollY == 0); Loading