From d73a77643d7923cae0789c5ed9f6a2a4cf41385f Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Thu, 23 Oct 2014 21:27:41 +0200 Subject: [PATCH] context menu for messages. allow to resend single messages --- res/layout/message_received.xml | 4 +- res/layout/message_sent.xml | 4 +- res/menu/message_context.xml | 17 +++ res/values/strings.xml | 19 +++- .../siacs/conversations/entities/Message.java | 11 ++ .../services/XmppConnectionService.java | 17 +++ .../ui/ConversationActivity.java | 1 + .../ui/ConversationFragment.java | 101 +++++++++++++++++- .../conversations/ui/EditAccountActivity.java | 13 +-- .../siacs/conversations/ui/XmppActivity.java | 13 +++ .../ui/adapter/MessageAdapter.java | 28 ++--- 11 files changed, 189 insertions(+), 39 deletions(-) create mode 100644 res/menu/message_context.xml diff --git a/res/layout/message_received.xml b/res/layout/message_received.xml index 730d00d53..39bb842ac 100644 --- a/res/layout/message_received.xml +++ b/res/layout/message_received.xml @@ -15,7 +15,8 @@ android:layout_alignParentBottom="true" android:layout_toRightOf="@+id/message_photo" android:background="@drawable/message_border" - android:minHeight="48dp" > + android:minHeight="48dp" + android:longClickable="true">