* commit '6b9651068b8b8db3591a9c1067cc7dfe27890d7b': Only speak key label after checking for password obscure flag.
This commit is contained in:
commit
2f33311f8e
1 changed files with 2 additions and 3 deletions
|
@ -111,9 +111,6 @@ public class KeyCodeDescriptionMapper {
|
||||||
if (mKeyLabelMap.containsKey(label)) {
|
if (mKeyLabelMap.containsKey(label)) {
|
||||||
return context.getString(mKeyLabelMap.get(label));
|
return context.getString(mKeyLabelMap.get(label));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, return the label.
|
|
||||||
return key.mLabel;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Just attempt to speak the description.
|
// Just attempt to speak the description.
|
||||||
|
@ -229,6 +226,8 @@ public class KeyCodeDescriptionMapper {
|
||||||
return context.getString(mKeyCodeMap.get(code));
|
return context.getString(mKeyCodeMap.get(code));
|
||||||
} else if (isDefinedNonCtrl) {
|
} else if (isDefinedNonCtrl) {
|
||||||
return Character.toString((char) code);
|
return Character.toString((char) code);
|
||||||
|
} else if (!TextUtils.isEmpty(key.mLabel)) {
|
||||||
|
return key.mLabel;
|
||||||
} else {
|
} else {
|
||||||
return context.getString(R.string.spoken_description_unknown, code);
|
return context.getString(R.string.spoken_description_unknown, code);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue