Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/SmartReplyView.java +7 −0 Original line number Diff line number Diff line Loading @@ -219,6 +219,7 @@ public class SmartReplyView extends ViewGroup { private void clearLayoutLineCount(View view) { if (view instanceof TextView) { ((TextView) view).nullLayouts(); view.forceLayout(); } } Loading Loading @@ -270,6 +271,9 @@ public class SmartReplyView extends ViewGroup { clearLayoutLineCount(child); child.measure(MEASURE_SPEC_ANY_LENGTH, heightMeasureSpec); if (((Button) child).getLayout() == null) { Log.wtf(TAG, "Button layout is null after measure."); } coveredSuggestions.add(child); Loading Loading @@ -590,6 +594,9 @@ public class SmartReplyView extends ViewGroup { button.getPaddingLeft() + button.getPaddingRight() + textWidth + getLeftCompoundDrawableWidthWithPadding(button), MeasureSpec.AT_MOST); button.measure(widthMeasureSpec, heightMeasureSpec); if (button.getLayout() == null) { Log.wtf(TAG, "Button layout is null after measure."); } final int newWidth = button.getMeasuredWidth(); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/SmartReplyView.java +7 −0 Original line number Diff line number Diff line Loading @@ -219,6 +219,7 @@ public class SmartReplyView extends ViewGroup { private void clearLayoutLineCount(View view) { if (view instanceof TextView) { ((TextView) view).nullLayouts(); view.forceLayout(); } } Loading Loading @@ -270,6 +271,9 @@ public class SmartReplyView extends ViewGroup { clearLayoutLineCount(child); child.measure(MEASURE_SPEC_ANY_LENGTH, heightMeasureSpec); if (((Button) child).getLayout() == null) { Log.wtf(TAG, "Button layout is null after measure."); } coveredSuggestions.add(child); Loading Loading @@ -590,6 +594,9 @@ public class SmartReplyView extends ViewGroup { button.getPaddingLeft() + button.getPaddingRight() + textWidth + getLeftCompoundDrawableWidthWithPadding(button), MeasureSpec.AT_MOST); button.measure(widthMeasureSpec, heightMeasureSpec); if (button.getLayout() == null) { Log.wtf(TAG, "Button layout is null after measure."); } final int newWidth = button.getMeasuredWidth(); Loading