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

Commit 4866fc9b authored by Tim Yu's avatar Tim Yu Committed by Android (Google) Code Review
Browse files

Merge "[Autofill] Migrate aconfig flag" into main

parents 4412f63a 9534c20a
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -244,6 +244,17 @@ public class AutofillFeatureFlags {
    public static final String DEVICE_CONFIG_IGNORE_VIEW_STATE_RESET_TO_EMPTY =
            "ignore_view_state_reset_to_empty";

    /**
     * Bugfix flag, Autofill should ignore view updates if an Auth intent is showing.
     *
     * See frameworks/base/services/autofill/bugfixes.aconfig#relayout
     * for more information.
     *
     * @hide
     */
    public static final String DEVICE_CONFIG_IGNORE_RELAYOUT_WHEN_AUTH_PENDING =
            "ignore_relayout_auth_pending";

    // END AUTOFILL FOR ALL APPS FLAGS //


@@ -513,6 +524,14 @@ public class AutofillFeatureFlags {
                false);
    }

    /** @hide */
    public static boolean shouldIgnoreRelayoutWhenAuthPending() {
        return DeviceConfig.getBoolean(
                DeviceConfig.NAMESPACE_AUTOFILL,
                DEVICE_CONFIG_IGNORE_RELAYOUT_WHEN_AUTH_PENDING,
                false);
    }

    /**
     * Whether should enable multi-line filter
     *
+1 −1
Original line number Diff line number Diff line
@@ -974,7 +974,7 @@ public final class AutofillManager {
        mShouldIncludeInvisibleViewInAssistStructure =
                AutofillFeatureFlags.shouldIncludeInvisibleViewInAssistStructure();

        mRelayoutFix = Flags.relayout();
        mRelayoutFix = AutofillFeatureFlags.shouldIgnoreRelayoutWhenAuthPending();
        mIsCredmanIntegrationEnabled = Flags.autofillCredmanIntegration();
    }