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

Commit 55f0e3be authored by Adam He's avatar Adam He Committed by android-build-merger
Browse files

Merge "Fixed autofill compat mode regression caused by DecorContext" into...

Merge "Fixed autofill compat mode regression caused by DecorContext" into qt-dev am: 2f54cf12 am: f44f4f98
am: 5ab9ecd7

Change-Id: I9fb52d6e474185f87857f1055d55fa30263afd85
parents 44ee8b40 5ab9ecd7
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.internal.policy;

import android.content.AutofillOptions;
import android.content.ContentCaptureOptions;
import android.content.Context;
import android.content.res.AssetManager;
@@ -97,6 +98,15 @@ public class DecorContext extends ContextThemeWrapper {
        return mActivityResources.getAssets();
    }

    @Override
    public AutofillOptions getAutofillOptions() {
        Context activityContext = mActivityContext.get();
        if (activityContext != null) {
            return activityContext.getAutofillOptions();
        }
        return null;
    }

    @Override
    public ContentCaptureOptions getContentCaptureOptions() {
        Context activityContext = mActivityContext.get();