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

Commit c405401a authored by Adrian Roos's avatar Adrian Roos Committed by android-build-merger
Browse files

Merge "DirectReply: Send button was wrongly actionable on empty field" into nyc-dev am: 47d849da

am: adb7fefc

* commit 'adb7fefc':
  DirectReply: Send button was wrongly actionable on empty field

Change-Id: Ia500c4373ee77ed216806537d945774a6ec8ed86
parents 64840645 adb7fefc
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -91,8 +91,6 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
        mEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
            @Override
            public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {

                // Check if this was the result of hitting the enter key
                final boolean isSoftImeEvent = event == null
                        && (actionId == EditorInfo.IME_ACTION_DONE
                        || actionId == EditorInfo.IME_ACTION_NEXT
@@ -102,7 +100,10 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
                        && event.getAction() == KeyEvent.ACTION_DOWN;

                if (isSoftImeEvent || isKeyboardEnterKey) {
                    if (mEditText.length() > 0) {
                        sendRemoteInput();
                    }
                    // Consume action to prevent IME from closing.
                    return true;
                }
                return false;