diff options
author | Fan Zhang <zhfan@google.com> | 2018-03-22 14:08:16 -0700 |
---|---|---|
committer | Fan Zhang <zhfan@google.com> | 2018-03-22 14:08:16 -0700 |
commit | af1aa710c3724f9ba02d01de61467a0a0e28f8fd (patch) | |
tree | 479ca555801e72198936c0cd096a75cac07f4d01 /packages/SettingsLib/src/com/android/settingslib/CustomEditTextPreference.java | |
parent | 86259365d466332f072f29b8be5ccb5bca863a92 (diff) |
Force sentence case for free form edit preferences
Change-Id: I5e718a8a3d11894a28b09217cf39b06ab4af78e8
Fixes: 68038971
Test: visual
Diffstat (limited to 'packages/SettingsLib/src/com/android/settingslib/CustomEditTextPreference.java')
-rw-r--r-- | packages/SettingsLib/src/com/android/settingslib/CustomEditTextPreference.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SettingsLib/src/com/android/settingslib/CustomEditTextPreference.java b/packages/SettingsLib/src/com/android/settingslib/CustomEditTextPreference.java index 8e29e50fc848..d39ec4b43151 100644 --- a/packages/SettingsLib/src/com/android/settingslib/CustomEditTextPreference.java +++ b/packages/SettingsLib/src/com/android/settingslib/CustomEditTextPreference.java @@ -15,6 +15,9 @@ */ package com.android.settingslib; +import static android.text.InputType.TYPE_CLASS_TEXT; +import static android.text.InputType.TYPE_TEXT_FLAG_CAP_SENTENCES; + import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; @@ -80,6 +83,7 @@ public class CustomEditTextPreference extends EditTextPreference { protected void onBindDialogView(View view) { final EditText editText = view.findViewById(android.R.id.edit); if (editText != null) { + editText.setInputType(TYPE_CLASS_TEXT | TYPE_TEXT_FLAG_CAP_SENTENCES); editText.requestFocus(); } } |