mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-14 01:03:28 +01:00
Fix main thread hang when opening a conversation with an emoji-heavy draft.
This commit is contained in:
@@ -181,11 +181,8 @@ public class ComposeText extends EmojiEditText {
|
||||
}
|
||||
|
||||
public void setDraftText(@Nullable CharSequence draftText) {
|
||||
setText("", BufferType.EDITABLE);
|
||||
|
||||
if (draftText != null) {
|
||||
append(draftText);
|
||||
}
|
||||
setText(draftText != null ? draftText : "", BufferType.EDITABLE);
|
||||
setSelection(length());
|
||||
}
|
||||
|
||||
public void appendInvite(String invite) {
|
||||
|
||||
Reference in New Issue
Block a user