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

Commit 8fd407f4 authored by Tiger Huang's avatar Tiger Huang
Browse files

Don't exclude system apps from disabling opt-out edge-to-edge

System apps should not opt out edge-to-edge since targeting SDK 36.

Bug: 377864165
Fix: 390076498
Flag: com.android.window.flags.disable_opt_out_edge_to_edge
Test: presubmit
Change-Id: I17ffeca015f6900f564de25a42f6a922ca6f53a0
parent eb06ce14
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -478,8 +478,6 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
    public static boolean isOptingOutEdgeToEdgeEnforcement(ApplicationInfo info, boolean local,
            TypedArray windowStyle) {
        final boolean disabled = Flags.disableOptOutEdgeToEdge()
                // TODO (b/377864165): Don't exclude system apps after they are ready.
                && !info.isSystemApp()
                && (local
                        // Calling this doesn't require a permission.
                        ? CompatChanges.isChangeEnabled(DISABLE_OPT_OUT_EDGE_TO_EDGE)