Merge "Apply tint when setting check mark drawable" into nyc-dev

am: fff349d

* commit 'fff349ddbaf6d31f7373f854e85f2171adf2ef97':
  Apply tint when setting check mark drawable

Change-Id: I60101394be1aa0a83c67094e42b0e0761ee8f7e0
This commit is contained in:
Alan Viverette
2016-04-26 17:23:56 +00:00
committed by android-build-merger

View File

@@ -185,11 +185,12 @@ public class CheckedTextView extends TextView implements Checkable {
d.setCallback(this);
d.setVisible(getVisibility() == VISIBLE, false);
d.setState(CHECKED_STATE_SET);
setMinHeight(d.getIntrinsicHeight());
// Record the intrinsic dimensions when in "checked" state.
setMinHeight(d.getIntrinsicHeight());
mCheckMarkWidth = d.getIntrinsicWidth();
d.setState(getDrawableState());
applyCheckMarkTint();
} else {
mCheckMarkWidth = 0;
}
@@ -197,6 +198,8 @@ public class CheckedTextView extends TextView implements Checkable {
mCheckMarkDrawable = d;
mCheckMarkResource = resId;
applyCheckMarkTint();
// Do padding resolution. This will call internalSetPadding() and do a
// requestLayout() if needed.
resolvePadding();