Add scrollable text to biometric prompt

Test: Verified the marquee text scrolls if text is too large to display
on a single line.
Bug: 201045056

Change-Id: I7af434295fa90b9229e10a124b97c7f4588fb7c5
This commit is contained in:
Joshua Mccloskey
2021-12-10 11:02:51 -08:00
parent 27db3c0af9
commit 4a8ce08c04
2 changed files with 4 additions and 0 deletions

View File

@@ -73,6 +73,9 @@
android:accessibilityLiveRegion="polite"
android:singleLine="true"
android:ellipsize="marquee"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:fadingEdge="horizontal"
android:textColor="@color/biometric_dialog_gray"/>
<LinearLayout

View File

@@ -636,6 +636,7 @@ public abstract class AuthBiometricView extends LinearLayout {
mIndicatorView.setText(message);
mIndicatorView.setTextColor(mTextColorError);
mIndicatorView.setVisibility(View.VISIBLE);
mIndicatorView.setSelected(true);
mHandler.postDelayed(resetMessageRunnable, mInjector.getDelayAfterError());
Utils.notifyAccessibilityContentChanged(mAccessibilityManager, this);