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

Commit c3e1e75b authored by Wenyi Wang's avatar Wenyi Wang Committed by android-build-merger
Browse files

Merge "Show delete button only when text is not empty" into ub-contactsdialer-a-dev

am: df864c78

* commit 'df864c78':
  Show delete button only when text is not empty
parents 861ed004 df864c78
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -260,8 +260,8 @@ public class TextFieldsEditorView extends LabeledEditorView {
                fieldView.setText(value);
            }

            // Show the delete button if we have a non-null value
            setDeleteButtonVisible(value != null);
            // Show the delete button if we have a non-empty value
            setDeleteButtonVisible(!TextUtils.isEmpty(value));

            // Prepare listener for writing changes
            fieldView.addTextChangedListener(new TextWatcher() {