aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-06-17 14:26:36 +0200
committerChristian Schneppe <christian@pix-art.de>2017-06-17 14:26:36 +0200
commit09a284ea4fb1ee6171db2f7c91940a3ffe67355a (patch)
tree11100362becdb431304bbd8cdddd2cd73404816a /src/main
parent0419b24dce1d189384265d8c2613f24dde70d1a3 (diff)
fix resend feature
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java5
1 files changed, 2 insertions, 3 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 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<Message> 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);