From 1a844e3cd5dc1ce87eda13e5902f7bad31a918df Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Wed, 26 Apr 2017 20:20:02 +0200 Subject: avoid rare race condition when saving draft message --- src/main/java/de/pixart/messenger/ui/ConversationFragment.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/de') diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java index 3b5e4b212..c9fc7aeb2 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java @@ -1165,6 +1165,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa mEditMessage.append(conversation.getDraftMessage()); conversation.setDraftMessage(null); } + conversation.setNextMessage(mEditMessage.getText().toString()); updateChatMsgHint(); new Handler().post(new Runnable() { @Override -- cgit v1.2.3