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

Commit cc5a7192 authored by Philip P. Moltmann's avatar Philip P. Moltmann Committed by android-build-merger
Browse files

Merge "Read the autofill highlight from rootView context" into oc-dev

am: f51b5f99

Change-Id: Ibaef62c34d3c966d104244ba3380864451c8cb6c
parents 0a7dc82e f51b5f99
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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();
        }