mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
call EditText.setText() instead of clear because clear causes problems on some keyboards
This commit is contained in:
parent
6167ddb4a8
commit
4d2a1afaf9
@ -345,8 +345,8 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||||||
case CANCEL:
|
case CANCEL:
|
||||||
if (conversation != null) {
|
if (conversation != null) {
|
||||||
if(conversation.setCorrectingMessage(null)) {
|
if(conversation.setCorrectingMessage(null)) {
|
||||||
mEditMessage.getEditableText().clear();
|
mEditMessage.setText("");
|
||||||
mEditMessage.getEditableText().append(conversation.getDraftMessage());
|
mEditMessage.append(conversation.getDraftMessage());
|
||||||
conversation.setDraftMessage(null);
|
conversation.setDraftMessage(null);
|
||||||
} else if (conversation.getMode() == Conversation.MODE_MULTI) {
|
} else if (conversation.getMode() == Conversation.MODE_MULTI) {
|
||||||
conversation.setNextCounterpart(null);
|
conversation.setNextCounterpart(null);
|
||||||
@ -829,7 +829,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||||||
if (conversation.setOutgoingChatState(Config.DEFAULT_CHATSTATE)) {
|
if (conversation.setOutgoingChatState(Config.DEFAULT_CHATSTATE)) {
|
||||||
activity.xmppConnectionService.sendChatState(conversation);
|
activity.xmppConnectionService.sendChatState(conversation);
|
||||||
}
|
}
|
||||||
this.mEditMessage.getEditableText().clear();
|
this.mEditMessage.setText("");
|
||||||
this.conversation.setNextCounterpart(counterpart);
|
this.conversation.setNextCounterpart(counterpart);
|
||||||
updateChatMsgHint();
|
updateChatMsgHint();
|
||||||
updateSendButton();
|
updateSendButton();
|
||||||
@ -842,8 +842,8 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||||||
this.conversation.setCorrectingMessage(message);
|
this.conversation.setCorrectingMessage(message);
|
||||||
final Editable editable = mEditMessage.getText();
|
final Editable editable = mEditMessage.getText();
|
||||||
this.conversation.setDraftMessage(editable.toString());
|
this.conversation.setDraftMessage(editable.toString());
|
||||||
this.mEditMessage.getEditableText().clear();
|
this.mEditMessage.setText("");
|
||||||
this.mEditMessage.getEditableText().append(message.getBody());
|
this.mEditMessage.append(message.getBody());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1086,10 +1086,9 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||||||
|
|
||||||
protected void messageSent() {
|
protected void messageSent() {
|
||||||
mSendingPgpMessage.set(false);
|
mSendingPgpMessage.set(false);
|
||||||
Editable editable = mEditMessage.getEditableText();
|
mEditMessage.setText("");
|
||||||
editable.clear();
|
|
||||||
if (conversation.setCorrectingMessage(null)) {
|
if (conversation.setCorrectingMessage(null)) {
|
||||||
editable.append(conversation.getDraftMessage());
|
mEditMessage.append(conversation.getDraftMessage());
|
||||||
conversation.setDraftMessage(null);
|
conversation.setDraftMessage(null);
|
||||||
}
|
}
|
||||||
updateChatMsgHint();
|
updateChatMsgHint();
|
||||||
|
Loading…
Reference in New Issue
Block a user