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

Commit 5946a8bf authored by Tiger's avatar Tiger
Browse files

Let BackupRestoreConfirmation 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: 333130113
Bug: 309578419
Flag: com.android.window.flags.enforce_edge_to_edge
Test: atest BackupEligibilityHostSideTest
Change-Id: I50f34346d70f86d92995a83dccf49a94e04f2894
parent 869e636a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
                 android:permission="android.permission.CONFIRM_FULL_BACKUP" >

        <activity android:name=".BackupRestoreConfirmation"
                  android:theme="@style/OptOutEdgeToEdgeEnforcement"
                  android:title=""
                  android:windowSoftInputMode="stateAlwaysHidden"
                  android:excludeFromRecents="true"
+24 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2024 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<resources xmlns:android="http://schemas.android.com/apk/res/android">
    <!--
        TODO(b/309578419): Make activities handle insets properly and then remove this.
    -->
    <style name="OptOutEdgeToEdgeEnforcement">
        <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
    </style>
</resources>