From 77491039097734ce746b5b46791464bd236d4703 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 5 Apr 2014 12:49:43 +0200 Subject: added attach file action --- res/drawable-hdpi/ic_action_new_attachment.png | Bin 0 -> 648 bytes res/drawable-mdpi/ic_action_new_attachment.png | Bin 0 -> 468 bytes res/drawable-xhdpi/ic_action_new_attachment.png | Bin 0 -> 789 bytes res/drawable-xxhdpi/ic_action_new_attachment.png | Bin 0 -> 1112 bytes res/menu/conversations.xml | 7 +++++++ res/values/strings.xml | 1 + src/eu/siacs/conversations/ui/ConversationActivity.java | 4 ++++ 7 files changed, 12 insertions(+) create mode 100644 res/drawable-hdpi/ic_action_new_attachment.png create mode 100644 res/drawable-mdpi/ic_action_new_attachment.png create mode 100644 res/drawable-xhdpi/ic_action_new_attachment.png create mode 100644 res/drawable-xxhdpi/ic_action_new_attachment.png diff --git a/res/drawable-hdpi/ic_action_new_attachment.png b/res/drawable-hdpi/ic_action_new_attachment.png new file mode 100644 index 00000000..28507da2 Binary files /dev/null and b/res/drawable-hdpi/ic_action_new_attachment.png differ diff --git a/res/drawable-mdpi/ic_action_new_attachment.png b/res/drawable-mdpi/ic_action_new_attachment.png new file mode 100644 index 00000000..33058655 Binary files /dev/null and b/res/drawable-mdpi/ic_action_new_attachment.png differ diff --git a/res/drawable-xhdpi/ic_action_new_attachment.png b/res/drawable-xhdpi/ic_action_new_attachment.png new file mode 100644 index 00000000..4948feec Binary files /dev/null and b/res/drawable-xhdpi/ic_action_new_attachment.png differ diff --git a/res/drawable-xxhdpi/ic_action_new_attachment.png b/res/drawable-xxhdpi/ic_action_new_attachment.png new file mode 100644 index 00000000..78553886 Binary files /dev/null and b/res/drawable-xxhdpi/ic_action_new_attachment.png differ diff --git a/res/menu/conversations.xml b/res/menu/conversations.xml index 5902e74f..3dfc12dd 100644 --- a/res/menu/conversations.xml +++ b/res/menu/conversations.xml @@ -14,6 +14,13 @@ android:icon="@drawable/ic_action_unsecure" android:title="@string/action_secure" /> + + Unable to connect to account Unable to connect to multiple accounts Touch here to manage your accounts + Attach file diff --git a/src/eu/siacs/conversations/ui/ConversationActivity.java b/src/eu/siacs/conversations/ui/ConversationActivity.java index f47e8a8c..41ee6336 100644 --- a/src/eu/siacs/conversations/ui/ConversationActivity.java +++ b/src/eu/siacs/conversations/ui/ConversationActivity.java @@ -234,6 +234,7 @@ public class ConversationActivity extends XmppActivity { MenuItem menuMucDetails = (MenuItem) menu.findItem(R.id.action_muc_details); MenuItem menuContactDetails = (MenuItem) menu.findItem(R.id.action_contact_details); MenuItem menuInviteContacts = (MenuItem) menu.findItem(R.id.action_invite); + MenuItem menuAttach = (MenuItem) menu.findItem(R.id.action_attach_file); if ((spl.isOpen()&&(spl.isSlideable()))) { menuArchive.setVisible(false); @@ -241,6 +242,7 @@ public class ConversationActivity extends XmppActivity { menuContactDetails.setVisible(false); menuSecure.setVisible(false); menuInviteContacts.setVisible(false); + menuAttach.setVisible(false); } else { ((MenuItem) menu.findItem(R.id.action_add)).setVisible(!spl.isSlideable()); if (this.getSelectedConversation()!=null) { @@ -249,10 +251,12 @@ public class ConversationActivity extends XmppActivity { menuContactDetails.setVisible(false); menuSecure.setVisible(false); menuInviteContacts.setVisible(true); + menuAttach.setVisible(false); } else { menuContactDetails.setVisible(true); menuMucDetails.setVisible(false); menuInviteContacts.setVisible(false); + menuAttach.setVisible(true); if (this.getSelectedConversation().getLatestMessage().getEncryption() != Message.ENCRYPTION_NONE) { menuSecure.setIcon(R.drawable.ic_action_secure); } -- cgit v1.2.3