Files
frameworks_base/packages/SystemUI/res/layout/auth_container_view.xml
Curtis Belmonte bca44547d0 Fix BiometricPrompt double TalkBack announcement
Fixes an issue that caused the content description for the
BiometricPrompt background cancellation target to be read aloud twice by
TalkBack when the prompt was displayed.

Test: Manual:
1. Enable Talkback
2. Install the CtsVerifier apk
3. Launch app and select Biometric Tests > 4a: Cipher, Credential
4. Select "time-based key with biometric" to launch prompt

Before: TalkBack reads "Tap to cancel authentication. Tap to cancel
authentication, button."

After: TalkBack reads "SystemUI. Tap to cancel authentication, button."

Fixes: 155042588
Change-Id: I93f7380d87213aba8f1e1030510b84170ae9c2f7
2020-05-08 13:49:33 -07:00

44 lines
1.7 KiB
XML

<!--
~ Copyright (C) 2019 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.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/biometric_dialog_dim_color"
android:contentDescription="@string/biometric_dialog_empty_space_description"/>
<View
android:id="@+id/panel"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:attr/colorBackgroundFloating"
android:elevation="@dimen/biometric_dialog_elevation"/>
<ScrollView
android:id="@+id/biometric_scrollview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal|bottom"
android:layout_margin="@dimen/biometric_dialog_border_padding"
android:elevation="@dimen/biometric_dialog_elevation"/>
</FrameLayout>