Merge "Add hint to EditText for Talkback" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
e69d209b3c
@@ -67,6 +67,9 @@ public class ValidatedEditTextPreference extends CustomEditTextPreferenceCompat
|
|||||||
protected void onBindDialogView(View view) {
|
protected void onBindDialogView(View view) {
|
||||||
super.onBindDialogView(view);
|
super.onBindDialogView(view);
|
||||||
final EditText editText = view.findViewById(android.R.id.edit);
|
final EditText editText = view.findViewById(android.R.id.edit);
|
||||||
|
if (editText != null) {
|
||||||
|
editText.setHint(getDialogTitle());
|
||||||
|
}
|
||||||
if (editText != null && !TextUtils.isEmpty(editText.getText())) {
|
if (editText != null && !TextUtils.isEmpty(editText.getText())) {
|
||||||
editText.setSelection(editText.getText().length());
|
editText.setSelection(editText.getText().length());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user