|
@@ -147,8 +147,8 @@ public class MDTintHelper {
|
|
|
Field fCursorDrawable = clazz.getDeclaredField("mCursorDrawable");
|
|
|
fCursorDrawable.setAccessible(true);
|
|
|
Drawable[] drawables = new Drawable[2];
|
|
|
- drawables[0] = editText.getContext().getResources().getDrawable(mCursorDrawableRes);
|
|
|
- drawables[1] = editText.getContext().getResources().getDrawable(mCursorDrawableRes);
|
|
|
+ drawables[0] = ContextCompat.getDrawable(editText.getContext(), mCursorDrawableRes);
|
|
|
+ drawables[1] = ContextCompat.getDrawable(editText.getContext(), mCursorDrawableRes);
|
|
|
drawables[0].setColorFilter(color, PorterDuff.Mode.SRC_IN);
|
|
|
drawables[1].setColorFilter(color, PorterDuff.Mode.SRC_IN);
|
|
|
fCursorDrawable.set(editor, drawables);
|