diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-04-26 23:15:07 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-04-26 23:15:07 +0200 |
commit | 721f5148c62ba870236c7ba9f624a7378138ee3f (patch) | |
tree | 1cf1b84cb747d01ae4ccd1a48550140fe19255bb | |
parent | f9f07063876ec5f3917ce72385b015e1b5f31d7e (diff) |
keyboard event callbacks shoud run on ui thread
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index 02785cb40..b0a4570fd 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -2876,7 +2876,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke if (broadcastLastActivity) { //service.sendPresence(conversation.getAccount(), false); //send new presence but don't include idle because we are not } - updateSendButton(); + runOnUiThread(this::updateSendButton); } @Override @@ -2902,15 +2902,15 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke service.sendChatState(conversation); } if (storeNextMessage()) { - activity.onConversationsListItemUpdated(); + runOnUiThread(() -> activity.onConversationsListItemUpdated()); } - updateSendButton(); + runOnUiThread(this::updateSendButton); } @Override public void onTextChanged() { if (conversation != null && conversation.getCorrectingMessage() != null) { - updateSendButton(); + runOnUiThread(this::updateSendButton); } } |