Do not select hint indicator when talkback is enabled.
This prevents "Selected" from being announced but prevents the text from scrolling (not as important when talkback is enabled). Fix: 210363098 Test: manual (use biometric prompt with talkback on/off and verify text only scrolls when off) Change-Id: I7d77cd871d8d8e817f418aea0c6ce9c5153a5b60
This commit is contained in:
@@ -636,7 +636,9 @@ public abstract class AuthBiometricView extends LinearLayout {
|
||||
mIndicatorView.setText(message);
|
||||
mIndicatorView.setTextColor(mTextColorError);
|
||||
mIndicatorView.setVisibility(View.VISIBLE);
|
||||
mIndicatorView.setSelected(true);
|
||||
// select to enable marquee unless a screen reader is enabled
|
||||
mIndicatorView.setSelected(!mAccessibilityManager.isEnabled()
|
||||
|| !mAccessibilityManager.isTouchExplorationEnabled());
|
||||
mHandler.postDelayed(resetMessageRunnable, mInjector.getDelayAfterError());
|
||||
|
||||
Utils.notifyAccessibilityContentChanged(mAccessibilityManager, this);
|
||||
|
||||
Reference in New Issue
Block a user