Fixed talkback issue on confirm lock password.
Fixes: 132156012 Test: Verified with BiometricPromptDemo that talkback now announces the correct password type for PIN/Pattern/Pass. Change-Id: I3a04fe691140abba40396f95a601f863d87ee394
This commit is contained in:
@@ -163,8 +163,16 @@ public class ConfirmLockPassword extends ConfirmDeviceCredentialBaseActivity {
|
|||||||
mDetailsTextView.setText(detailsMessage);
|
mDetailsTextView.setText(detailsMessage);
|
||||||
}
|
}
|
||||||
int currentType = mPasswordEntry.getInputType();
|
int currentType = mPasswordEntry.getInputType();
|
||||||
mPasswordEntry.setInputType(mIsAlpha ? currentType
|
if (mIsAlpha) {
|
||||||
: (InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_PASSWORD));
|
mPasswordEntry.setInputType(currentType);
|
||||||
|
mPasswordEntry.setContentDescription(
|
||||||
|
getContext().getString(R.string.unlock_set_unlock_password_title));
|
||||||
|
} else {
|
||||||
|
mPasswordEntry.setInputType(
|
||||||
|
InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_PASSWORD);
|
||||||
|
mPasswordEntry.setContentDescription(
|
||||||
|
getContext().getString(R.string.unlock_set_unlock_pin_title));
|
||||||
|
}
|
||||||
// Can't set via XML since setInputType resets the fontFamily to null
|
// Can't set via XML since setInputType resets the fontFamily to null
|
||||||
mPasswordEntry.setTypeface(Typeface.create(
|
mPasswordEntry.setTypeface(Typeface.create(
|
||||||
getContext().getString(com.android.internal.R.string.config_headlineFontFamily),
|
getContext().getString(com.android.internal.R.string.config_headlineFontFamily),
|
||||||
|
Reference in New Issue
Block a user