Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1399366c authored by Fan Zhang's avatar Fan Zhang Committed by android-build-merger
Browse files

Merge "Force sentence case for free form edit preferences" into pi-dev

am: 8e9a1123

Change-Id: I5fbcd8b575f111fbc5ac460e471913790523b44d
parents 6e5b7c46 8e9a1123
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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();
        }
    }