Loading core/java/android/view/View.java +3 −2 Original line number Diff line number Diff line Loading @@ -20430,9 +20430,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, @Nullable private Drawable getAutofilledDrawable() { // Lazily load the isAutofilled drawable. if (mAttachInfo.mAutofilledDrawable == null) { TypedArray a = mContext.getTheme().obtainStyledAttributes(AUTOFILL_HIGHLIGHT_ATTR); Context rootContext = getRootView().getContext(); TypedArray a = rootContext.getTheme().obtainStyledAttributes(AUTOFILL_HIGHLIGHT_ATTR); int attributeResourceId = a.getResourceId(0, 0); mAttachInfo.mAutofilledDrawable = mContext.getDrawable(attributeResourceId); mAttachInfo.mAutofilledDrawable = rootContext.getDrawable(attributeResourceId); a.recycle(); } Loading
core/java/android/view/View.java +3 −2 Original line number Diff line number Diff line Loading @@ -20430,9 +20430,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, @Nullable private Drawable getAutofilledDrawable() { // Lazily load the isAutofilled drawable. if (mAttachInfo.mAutofilledDrawable == null) { TypedArray a = mContext.getTheme().obtainStyledAttributes(AUTOFILL_HIGHLIGHT_ATTR); Context rootContext = getRootView().getContext(); TypedArray a = rootContext.getTheme().obtainStyledAttributes(AUTOFILL_HIGHLIGHT_ATTR); int attributeResourceId = a.getResourceId(0, 0); mAttachInfo.mAutofilledDrawable = mContext.getDrawable(attributeResourceId); mAttachInfo.mAutofilledDrawable = rootContext.getDrawable(attributeResourceId); a.recycle(); }