aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-02-09 21:50:33 +0100
committerChristian Schneppe <christian@pix-art.de>2017-02-09 21:50:33 +0100
commite8bf1da975a558c2b644303efa8444055b3396ce (patch)
treec3d0c789d818d2f403fc5f7488c0f46af89f5f4b /src/main/java/de/pixart/messenger/ui
parent9e63ebae836f64163ac1a9b5c4d772b576112131 (diff)
make resend via context menu available again...
...because it was accidentally removed
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;