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

Commit c01eaba7 authored by Tiger's avatar Tiger
Browse files

Let GrantCredentialsPermissionActivity opt out edge-to-edge

This is a temporary solution to prevent the layout issue while
enabling the feature flag of the edge-to-edge enforcement.

We still need to make the activity handle insets properly later.

Fix: 344828280
Bug: 309578419
Flag: com.android.window.flags.enforce_edge_to_edge
Test: presubmit
Change-Id: Ia69d99c210d5f7826b7554a93ce1d74cbecbd751
parent 2767bf3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8351,7 +8351,7 @@
        <activity android:name="android.accounts.GrantCredentialsPermissionActivity"
                android:excludeFromRecents="true"
                android:exported="true"
                android:theme="@style/Theme.DeviceDefault.Light.DialogWhenLarge"
                android:theme="@style/GrantCredentialsPermissionActivity"
                android:process=":ui"
                android:visibleToInstantApps="true">
        </activity>
+8 −0
Original line number Diff line number Diff line
@@ -1690,4 +1690,12 @@ please see styles_device_defaults.xml.
           parent="@style/Theme.DeviceDefault.Resolver">
        <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
    </style>

    <!--
        TODO(b/309578419): Make activities go edge-to-edge properly and then remove this.
    -->
    <style name="GrantCredentialsPermissionActivity"
           parent="@style/Theme.DeviceDefault.Light.DialogWhenLarge">
        <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
    </style>
</resources>