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

Commit d65a5c4e authored by Simranjit Kohli's avatar Simranjit Kohli
Browse files

[Relayout] Enable relayout flags

Enable relayout device config flags by default.

Bug: 238252288
Bug: 381226145
Flag: android.service.autofill.relayout_fix
Test: atest CtsAutoFillServiceTestCases
Change-Id: Iaae5894ac3e4df70501fd88e230f9a2a155ce306
parent 6309886a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -603,7 +603,7 @@ public class AutofillFeatureFlags {
        return DeviceConfig.getBoolean(
                DeviceConfig.NAMESPACE_AUTOFILL,
                DEVICE_CONFIG_ENABLE_RELAYOUT,
                false);
                true);
    }

    /** @hide */
@@ -611,7 +611,7 @@ public class AutofillFeatureFlags {
        return DeviceConfig.getBoolean(
                DeviceConfig.NAMESPACE_AUTOFILL,
                DEVICE_CONFIG_ENABLE_RELATIVE_LOCATION_FOR_RELAYOUT,
                false);
                true);
    }

    /** @hide **/
+2 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import static android.service.autofill.FillRequest.FLAG_SUPPORTS_FILL_DIALOG;
import static android.service.autofill.FillRequest.FLAG_VIEW_NOT_FOCUSED;
import static android.service.autofill.FillRequest.FLAG_VIEW_REQUESTS_CREDMAN_SERVICE;
import static android.service.autofill.Flags.FLAG_FILL_DIALOG_IMPROVEMENTS;
import static android.service.autofill.Flags.relayoutFix;
import static android.view.ContentInfo.SOURCE_AUTOFILL;
import static android.view.autofill.Helper.sDebug;
import static android.view.autofill.Helper.sVerbose;
@@ -1013,7 +1014,7 @@ public final class AutofillManager {
                AutofillFeatureFlags.shouldIncludeInvisibleViewInAssistStructure();

        mRelayoutFixDeprecated = AutofillFeatureFlags.shouldIgnoreRelayoutWhenAuthPending();
        mRelayoutFix = AutofillFeatureFlags.enableRelayoutFixes();
        mRelayoutFix = relayoutFix() && AutofillFeatureFlags.enableRelayoutFixes();
        mRelativePositionForRelayout = AutofillFeatureFlags.enableRelativeLocationForRelayout();
        mIsCredmanIntegrationEnabled = Flags.autofillCredmanIntegration();
    }
+10 −0
Original line number Diff line number Diff line
@@ -22,6 +22,16 @@ flag {
  bug: "294330426"
}

flag {
  name: "relayout_fix"
  namespace: "autofill"
  description: "Fixing relayout issue. Guarding enabling device config flags"
  bug: "381226145"
  metadata {
    purpose: PURPOSE_BUGFIX
  }
}

flag {
  name: "include_invisible_view_group_in_assist_structure"
  namespace: "autofill"