mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
cleanup: don't test for what can't happen
This commit is contained in:
parent
d6ffd4dc25
commit
2b58072524
1 changed files with 4 additions and 9 deletions
|
@ -188,16 +188,11 @@ public class ChatDelegate extends DelegateBase {
|
|||
|
||||
private void handleSend() {
|
||||
String text = m_edit.getText().toString();
|
||||
if ( null == text || text.length() == 0 ) {
|
||||
setResult( Activity.RESULT_CANCELED );
|
||||
finish();
|
||||
} else {
|
||||
DBUtils.appendChatHistory( m_activity, m_rowid, text, m_curPlayer );
|
||||
addRow( text, m_curPlayer );
|
||||
m_edit.setText( null );
|
||||
DBUtils.appendChatHistory( m_activity, m_rowid, text, m_curPlayer );
|
||||
addRow( text, m_curPlayer );
|
||||
m_edit.setText( null );
|
||||
|
||||
m_jniThreadRef.sendChat( text );
|
||||
}
|
||||
m_jniThreadRef.sendChat( text );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue