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

Commit 58f48720 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

am: 1399366c

Change-Id: I2ed3ecddf6a80aa62ecee42fb7fa218be1dfefa4
parents a2c78e58 1399366c
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();
        }
    }