aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConversationFragment.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
index db9e3981d..e0b5b7e11 100644
--- a/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
+++ b/src/main/java/de/pixart/messenger/ui/ConversationFragment.java
@@ -616,6 +616,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
MenuItem retryDecryption = menu.findItem(R.id.retry_decryption);
MenuItem correctMessage = menu.findItem(R.id.correct_message);
MenuItem shareWith = menu.findItem(R.id.share_with);
+ MenuItem sendAgain = menu.findItem(R.id.send_again);
MenuItem copyUrl = menu.findItem(R.id.copy_url);
MenuItem downloadFile = menu.findItem(R.id.download_file);
MenuItem cancelTransmission = menu.findItem(R.id.cancel_transmission);
@@ -646,7 +647,8 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|| XmppUri.isXmppUri(m.getBody())) {
shareWith.setVisible(true);
}
- if (m.getStatus() == Message.STATUS_SEND_FAILED) {
+ if (m.getStatus() == Message.STATUS_SEND_FAILED && !m.isFileOrImage()) {
+ sendAgain.setVisible(true);
}
if (m.hasFileOnRemoteHost()
|| GeoHelper.isGeoUri(m.getBody())
@@ -695,6 +697,9 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
case R.id.correct_message:
correctMessage(selectedMessage);
return true;
+ case R.id.send_again:
+ resendMessage(selectedMessage);
+ return true;
case R.id.copy_url:
copyUrl(selectedMessage);
return true;