瀏覽代碼

Fix span refresh

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 6 年之前
父節點
當前提交
667e01924c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/com/nextcloud/talk/utils/DisplayUtils.java

+ 1 - 1
app/src/main/java/com/nextcloud/talk/utils/DisplayUtils.java

@@ -263,7 +263,7 @@ public class DisplayUtils {
 
 
                                 // A hack to refresh the chip icon
                                 // A hack to refresh the chip icon
                                 if (emojiEditText != null) {
                                 if (emojiEditText != null) {
-                                    emojiEditText.setTextKeepState(emojiEditText.getText());
+                                    emojiEditText.post(() -> emojiEditText.setTextKeepState(emojiEditText.getText(), TextView.BufferType.SPANNABLE));
                                 }
                                 }
                             }
                             }
                         }
                         }