Merge "Add scrollable text to biometric prompt" into sc-v2-dev am: 752334d0c3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16441050

Change-Id: I4ee1e9cbf314a6af6a0da98aa057be48f89e24b8
This commit is contained in:
Joshua Mccloskey
2021-12-10 22:29:02 +00:00
committed by Automerger Merge Worker
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);