keyboard event callbacks shoud run on ui thread. fixes #3441
This commit is contained in:
parent
ff84ee6964
commit
a04b7a1c0f
|
@ -2592,7 +2592,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
||||||
if (status == Account.State.ONLINE && conversation.setOutgoingChatState(ChatState.COMPOSING)) {
|
if (status == Account.State.ONLINE && conversation.setOutgoingChatState(ChatState.COMPOSING)) {
|
||||||
service.sendChatState(conversation);
|
service.sendChatState(conversation);
|
||||||
}
|
}
|
||||||
updateSendButton();
|
runOnUiThread(this::updateSendButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -2618,15 +2618,15 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
||||||
service.sendChatState(conversation);
|
service.sendChatState(conversation);
|
||||||
}
|
}
|
||||||
if (storeNextMessage()) {
|
if (storeNextMessage()) {
|
||||||
activity.onConversationsListItemUpdated();
|
runOnUiThread(() -> activity.onConversationsListItemUpdated());
|
||||||
}
|
}
|
||||||
updateSendButton();
|
runOnUiThread(this::updateSendButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onTextChanged() {
|
public void onTextChanged() {
|
||||||
if (conversation != null && conversation.getCorrectingMessage() != null) {
|
if (conversation != null && conversation.getCorrectingMessage() != null) {
|
||||||
updateSendButton();
|
runOnUiThread(this::updateSendButton);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue