Loading core/java/android/widget/CheckedTextView.java +6 −0 Original line number Diff line number Diff line Loading @@ -160,6 +160,12 @@ public class CheckedTextView extends TextView implements Checkable { mBasePadding = mPaddingRight; } @Override public void setPaddingRelative(int start, int top, int end, int bottom) { super.setPaddingRelative(start, top, end, bottom); mBasePadding = getPaddingEnd(); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); Loading core/java/android/widget/TextView.java +14 −0 Original line number Diff line number Diff line Loading @@ -2079,6 +2079,20 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener invalidate(); } @Override public void setPaddingRelative(int start, int top, int end, int bottom) { if (start != getPaddingStart() || end != getPaddingEnd() || top != mPaddingTop || bottom != mPaddingBottom) { nullLayouts(); } // the super call will requestLayout() super.setPaddingRelative(start, top, end, bottom); invalidate(); } /** * Gets the autolink mask of the text. See {@link * android.text.util.Linkify#ALL Linkify.ALL} and peers for Loading Loading
core/java/android/widget/CheckedTextView.java +6 −0 Original line number Diff line number Diff line Loading @@ -160,6 +160,12 @@ public class CheckedTextView extends TextView implements Checkable { mBasePadding = mPaddingRight; } @Override public void setPaddingRelative(int start, int top, int end, int bottom) { super.setPaddingRelative(start, top, end, bottom); mBasePadding = getPaddingEnd(); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); Loading
core/java/android/widget/TextView.java +14 −0 Original line number Diff line number Diff line Loading @@ -2079,6 +2079,20 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener invalidate(); } @Override public void setPaddingRelative(int start, int top, int end, int bottom) { if (start != getPaddingStart() || end != getPaddingEnd() || top != mPaddingTop || bottom != mPaddingBottom) { nullLayouts(); } // the super call will requestLayout() super.setPaddingRelative(start, top, end, bottom); invalidate(); } /** * Gets the autolink mask of the text. See {@link * android.text.util.Linkify#ALL Linkify.ALL} and peers for Loading