Merge "Fix TextView#setTextCursorDrawable for resid=0"
This commit is contained in:
@@ -3685,7 +3685,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
* @attr ref android.R.styleable#TextView_textCursorDrawable
|
||||
*/
|
||||
public void setTextCursorDrawable(@DrawableRes int textCursorDrawable) {
|
||||
setTextCursorDrawable(mContext.getDrawable(textCursorDrawable));
|
||||
setTextCursorDrawable(
|
||||
textCursorDrawable != 0 ? mContext.getDrawable(textCursorDrawable) : null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user