Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.

Commit

Permalink
changed the catched keycode to keyevent.keycode_enter
Browse files Browse the repository at this point in the history
  • Loading branch information
seliver committed Apr 14, 2015
1 parent 6aae723 commit 7ec4e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/alexey_sel/elpisremote/RemoteControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ public void onClick(View v) {
new RequestTask().execute("dislike", new String());
}
});
ipport.setImeActionLabel("Set IP", 123);
ipport.setImeActionLabel("Set IP", KeyEvent.KEYCODE_ENTER);
ipport.setOnEditorActionListener(new OnEditorActionListener() {

@Override
public boolean onEditorAction(TextView v, int actionId,
KeyEvent event) {
if (actionId == 123) {
if (actionId == KeyEvent.KEYCODE_ENTER) {
ip = ipport.getText().toString();
Log.d("Setting ip", ip);
connect();
Expand Down

0 comments on commit 7ec4e2b

Please sign in to comment.