From 1c9b10c79dca8cfccd565511bf2e5f15d5c5fb4f Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 19 Sep 2019 12:29:11 +0200 Subject: bug fixes in MessageAdapter --- src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/main/java/de/pixart/messenger/ui') 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 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 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) { -- cgit v1.2.3