project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/LobbyChatFragment.java
changeset 7444 2e31f114f57e
parent 7358 57a508884052
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/LobbyChatFragment.java	Thu Jul 26 11:10:56 2012 +0200
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/LobbyChatFragment.java	Fri Jul 27 01:38:24 2012 +0200
@@ -58,16 +58,12 @@
 
 	private final class ChatSendListener implements OnEditorActionListener {
 		public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
-			boolean handled = false;
-			if(actionId == EditorInfo.IME_ACTION_SEND) {
-				String text = v.getText().toString();
-				if(text.length()>0) {
-					v.setText("");
-					netconn.sendChat(text);
-					handled = true;
-				}
+			String text = v.getText().toString();
+			if(text.length()>0) {
+				v.setText("");
+				netconn.sendChat(text);
 			}
-			return handled;
+			return true;
 		}
 	}
 }