Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf334204 authored by Mihai Popa's avatar Mihai Popa Committed by Android (Google) Code Review
Browse files

Merge "Fix TextView#setTextCursorDrawable for resid=0"

parents 9178eee8 0374b62b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
    }

    /**