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

Commit 2a781815 authored by Justin Klaassen's avatar Justin Klaassen
Browse files

Make label inputType == textCapSentences

Bug: 2379179

Also make the label input singleLine, since that is how we display it
in the rest of the UI.

Change-Id: I06a4507213bbcb75edcb4e632c24dcc283f5c3df
parent 35c815e8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.AppCompatEditText;
import android.text.Editable;
import android.text.InputType;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.KeyEvent;
@@ -118,6 +119,8 @@ public class LabelDialogFragment extends DialogFragment {
            public void afterTextChanged(Editable editable) {
            }
        });
        mLabelBox.setSingleLine();
        mLabelBox.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES);
        mLabelBox.setText(label);
        mLabelBox.selectAll();