mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +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() {
|
private void handleSend() {
|
||||||
String text = m_edit.getText().toString();
|
String text = m_edit.getText().toString();
|
||||||
if ( null == text || text.length() == 0 ) {
|
DBUtils.appendChatHistory( m_activity, m_rowid, text, m_curPlayer );
|
||||||
setResult( Activity.RESULT_CANCELED );
|
addRow( text, m_curPlayer );
|
||||||
finish();
|
m_edit.setText( null );
|
||||||
} else {
|
|
||||||
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
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue