Fix text alignment in SIM lock dialog.

- set the text alignment to view start when we bind the view.

Change-Id: Ia7f32d7a422a8a18d092d1ff808f792ab1980e87
Fixes: 78165098
Test: visual
This commit is contained in:
Doris Ling
2018-04-17 16:24:19 -07:00
parent 03b8aa3a3c
commit 807ee34fff

View File

@@ -57,6 +57,7 @@ class EditPinPreference extends CustomEditTextPreference {
if (editText != null) { if (editText != null) {
editText.setInputType(InputType.TYPE_CLASS_NUMBER | editText.setInputType(InputType.TYPE_CLASS_NUMBER |
InputType.TYPE_NUMBER_VARIATION_PASSWORD); InputType.TYPE_NUMBER_VARIATION_PASSWORD);
editText.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START);
} }
} }