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

Commit da2a07a8 authored by Niamh Walsh's avatar Niamh Walsh
Browse files

Handle insets (status bar, navigation bar, etc) properly in adb

backup/restore confirmation dialog.

This flow is deprecated / a developer tool, so we arent investing in
making it look any nicer, but this way, we wont break our CTS tests!
(b/333130113)

After removing opt-out:  http://screen/McdceDpYCHczgRk  http://screen/37Zi4N3FvL9n7s4
With fix:  http://screen/3qhjsdKyi5KuKzq  http://screen/9ZjJJrP5KzjMGSp

Test: manual + https://android-build.corp.google.com/builds/abtd/run/L46300030007841260
Fix: 378652636
Flag: EXEMPT bugfix
Change-Id: I34944e937c10b5cd2536d3f15220cda381c73e6c
parent b95e6688
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ android_app {
    name: "BackupRestoreConfirmation",
    defaults: ["platform_app_defaults"],
    srcs: ["src/**/*.java"],
    static_libs: ["androidx.core_core"],
    platform_apis: true,
    certificate: "platform",
    privileged: true,
+0 −1
Original line number Diff line number Diff line
@@ -27,7 +27,6 @@
                 android:permission="android.permission.CONFIRM_FULL_BACKUP" >

        <activity android:name=".BackupRestoreConfirmation"
                  android:theme="@style/OptOutEdgeToEdgeEnforcement"
                  android:title=""
                  android:windowSoftInputMode="stateAlwaysHidden"
                  android:excludeFromRecents="true"
+5 −4
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
              android:orientation="vertical" >

    <ScrollView
            android:id="@+id/scroll_view"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:layout_width="match_parent"
@@ -84,11 +85,11 @@
          android:layout_width="match_parent" />

    <!-- button bar -->
    <LinearLayout android:orientation="horizontal"
    <LinearLayout android:id="@+id/button_bar"
                  android:orientation="horizontal"
                  style="?android:attr/buttonBarStyle"
                  android:layout_height="wrap_content"
                  android:layout_width="match_parent"
                  android:layout_gravity="bottom">
                  android:layout_width="match_parent">

    <Button android:id="@+id/button_deny"
            style="?android:attr/buttonBarButtonStyle"
+7 −4
Original line number Diff line number Diff line
@@ -24,10 +24,12 @@
              android:orientation="vertical">

    <ScrollView
            android:id="@+id/scroll_view"
            android:padding="16dp"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:layout_width="match_parent">
            android:layout_width="match_parent"
            android:clipToPadding="false" >
        <LinearLayout
                android:orientation="vertical"
                android:layout_height="wrap_content"
@@ -82,7 +84,8 @@
          android:layout_width="match_parent" />

    <!-- button bar -->
    <LinearLayout android:orientation="horizontal"
    <LinearLayout android:id="@+id/button_bar"
                  android:orientation="horizontal"
                  style="?android:attr/buttonBarStyle"
                  android:layout_height="wrap_content"
                  android:layout_width="match_parent"
+0 −24
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>
Loading