Fix a11y for tappable BiometricPrompt empty space

Test: manual:
1. Enable TalkBack
2. Open the BiometricPrompt demo app
3. Press "Authenticate" from any demo activity

Before: TalkBack reads "Tap to cancel authentication" twice
After: TalkBack reads "Tap to cancel authentication" once

Fixes: 149545007
Change-Id: I2ae6aa65e7e2dec2dca6325074556e4db10c7880
This commit is contained in:
Curtis Belmonte
2020-03-04 12:49:46 -08:00
parent 543ff5f068
commit 445d289d7e

View File

@@ -23,6 +23,7 @@
android:id="@+id/background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:accessibilityLiveRegion="polite"
android:background="@color/biometric_dialog_dim_color"
android:contentDescription="@string/biometric_dialog_empty_space_description"/>