Loading core/java/android/view/NotificationHeaderView.java +8 −2 Original line number Diff line number Diff line Loading @@ -223,10 +223,16 @@ public class NotificationHeaderView extends RelativeLayout { super.onMeasure(widthMeasureSpec, heightMeasureSpec); if (notificationsRedesignTemplates()) { // TODO: b/378660052 - These should never be null in practice, consider using // requireViewById() in the onFinishInflate. if (mTopLineView != null) { mTopLineTranslation = measureCenterTranslation(mTopLineView); } if (mExpandButton != null) { mExpandButtonTranslation = measureCenterTranslation(mExpandButton); } } } private float measureCenterTranslation(View view) { // When the view is centered (see centerTopLine), its height is MATCH_PARENT Loading Loading
core/java/android/view/NotificationHeaderView.java +8 −2 Original line number Diff line number Diff line Loading @@ -223,10 +223,16 @@ public class NotificationHeaderView extends RelativeLayout { super.onMeasure(widthMeasureSpec, heightMeasureSpec); if (notificationsRedesignTemplates()) { // TODO: b/378660052 - These should never be null in practice, consider using // requireViewById() in the onFinishInflate. if (mTopLineView != null) { mTopLineTranslation = measureCenterTranslation(mTopLineView); } if (mExpandButton != null) { mExpandButtonTranslation = measureCenterTranslation(mExpandButton); } } } private float measureCenterTranslation(View view) { // When the view is centered (see centerTopLine), its height is MATCH_PARENT Loading