Set the content description of pin/password boxes
Fixes: 79711253 Test: Talkback announces the correct string correctly upon using either flow. Change-Id: I01c4e308b8ef9d501f1f5d37e716956a12bea6dc
This commit is contained in:
@@ -467,6 +467,13 @@ public class ChooseLockPassword extends SettingsActivity {
|
|||||||
int currentType = mPasswordEntry.getInputType();
|
int currentType = mPasswordEntry.getInputType();
|
||||||
mPasswordEntry.setInputType(mIsAlphaMode ? currentType
|
mPasswordEntry.setInputType(mIsAlphaMode ? currentType
|
||||||
: (InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_PASSWORD));
|
: (InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_PASSWORD));
|
||||||
|
if (mIsAlphaMode) {
|
||||||
|
mPasswordEntry.setContentDescription(
|
||||||
|
getString(R.string.unlock_set_unlock_password_title));
|
||||||
|
} else {
|
||||||
|
mPasswordEntry.setContentDescription(
|
||||||
|
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