1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-25 18:32:15 -05:00

Ignore empty messages entered

This commit is contained in:
Sebastian Kaspari 2010-03-10 22:17:53 +01:00
parent e0284da95f
commit ec85ac51b7

View File

@ -232,7 +232,7 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
MessageListAdapter adapter = view.getAdapter();
adapter.addMessage(message);
} else {
Log.d(TAG, "MessageListView Adapter is null");
Log.d(TAG, "MessageListView Adapter is null (position: " + position + ")");
}
}
@ -320,6 +320,11 @@ public class ServerActivity extends Activity implements ServiceConnection, Chann
String text = input.getText().toString();
input.setText("");
if (text == "") {
// ignore empty messages
return true;
}
Conversation conversation = deckAdapter.getItem(deck.getSelectedItemPosition());
if (conversation != null) {