From 09a284ea4fb1ee6171db2f7c91940a3ffe67355a Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 17 Jun 2017 14:26:36 +0200 Subject: fix resend feature --- src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 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 efbfa703f..d0bacc245 100644 --- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java +++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java @@ -253,12 +253,11 @@ public class MessageAdapter extends ArrayAdapter implements CopyTextVie DownloadableFile file = activity.xmppConnectionService.getFileBackend().getFile(message); if (file.exists()) { if (activity.xmppConnectionService.mHttpConnectionManager.getAutoAcceptFileSize() >= message.getFileParams().size) { - isResendable = false; + isResendable = true; viewHolder.resend_button.setVisibility(View.GONE); } else { - isResendable = true; + isResendable = false; viewHolder.resend_button.setVisibility(View.VISIBLE); - } } viewHolder.resend_button.setText(R.string.send_again); -- cgit v1.2.3