diff options
author | Christian Schneppe <christian@pix-art.de> | 2019-09-19 12:29:11 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2019-09-19 12:29:11 +0200 |
commit | 1c9b10c79dca8cfccd565511bf2e5f15d5c5fb4f (patch) | |
tree | 1f257368c876657e7ac0511f4b2449953d64d887 /src/main | |
parent | f976ebae8a89ea69aa190411d3d23089364e323a (diff) |
bug fixes in MessageAdapter
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java index 02f8945de..1dd98b5bf 100644 --- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java +++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java @@ -357,7 +357,7 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie if (message.getStatus() <= Message.STATUS_RECEIVED) { ; if ((filesize != null) && (info != null)) { - viewHolder.time.setText(formattedTime + " \u00B7 " + filesize + " \u00B7 " + info + bodyLanguage); + viewHolder.time.setText(formattedTime + " \u00B7 " + filesize + " \u00B7 " + info + bodyLanguageInfo); } else if ((filesize == null) && (info != null)) { viewHolder.time.setText(formattedTime + " \u00B7 " + info + bodyLanguageInfo); } else if ((filesize != null) && (info == null)) { @@ -1151,11 +1151,8 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie } private void markFileExisting(Message message) { - new Thread(() -> { - message.setFileDeleted(false); - activity.xmppConnectionService.updateMessage(message, false); - activity.refreshUi(); - }).start(); + message.setFileDeleted(false); + activity.xmppConnectionService.updateMessage(message, false); } private boolean checkFileExistence(Message message, View view, ViewHolder viewHolder) { |