diff options
author | 2024-04-11 23:02:14 +0800 | |
---|---|---|
committer | 2024-04-11 23:02:14 +0800 | |
commit | 5946a8bfbc924e05dbb4687c73d039f4b0c6b512 (patch) | |
tree | 9f5459e9abee52cd924a04c8dbd2a2f4762a301b | |
parent | 869e636a5c6cc17d6faaf0b95b4568286caa06fc (diff) |
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
-rw-r--r-- | packages/BackupRestoreConfirmation/AndroidManifest.xml | 3 | ||||
-rw-r--r-- | packages/BackupRestoreConfirmation/res/values/styles.xml | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/packages/BackupRestoreConfirmation/AndroidManifest.xml b/packages/BackupRestoreConfirmation/AndroidManifest.xml index e67b3be43ea1..44aa1b1b8747 100644 --- a/packages/BackupRestoreConfirmation/AndroidManifest.xml +++ b/packages/BackupRestoreConfirmation/AndroidManifest.xml @@ -26,7 +26,8 @@ android:allowBackup="false" android:permission="android.permission.CONFIRM_FULL_BACKUP" > - <activity android:name=".BackupRestoreConfirmation" + <activity android:name=".BackupRestoreConfirmation" + android:theme="@style/OptOutEdgeToEdgeEnforcement" android:title="" android:windowSoftInputMode="stateAlwaysHidden" android:excludeFromRecents="true" diff --git a/packages/BackupRestoreConfirmation/res/values/styles.xml b/packages/BackupRestoreConfirmation/res/values/styles.xml new file mode 100644 index 000000000000..ce54568ed6d6 --- /dev/null +++ b/packages/BackupRestoreConfirmation/res/values/styles.xml @@ -0,0 +1,24 @@ +<?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> |