aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/menu
diff options
context:
space:
mode:
authorAndreas Straub <andy@strb.org>2015-03-17 15:00:50 +0100
committerAndreas Straub <andy@strb.org>2015-03-18 17:11:50 +0100
commitf76baa5658df9b08c7cdc7b3b85560842cb4d7f9 (patch)
tree511be66b8cea47b6c52138dc96fb7625b1b00e03 /src/main/res/menu
parent4aab45533ac8a32be2fe66b266b845aed02acf1b (diff)
Added multiple select to Choose Contact Activity
When passing the Choose Contact Activity a boolean called "multiple" set to true, it now allows the user to select multiple contacts. Long pressing a contact enters multiple selection mode and the selection is confirmed using a button in the CAB. The Activity returns whether or not multiple contacts were selected using the same boolean. If multiple contacts were selected, an array of JID strings called "contacts" is returned. The Choose Contact Activity now also honors "filter_contacts", an array of strings containing JIDs that should not be displayed in the picker. The invite to conference dialog now uses this feature to enable inviting multiple contacts at once. Additionally, Invite Contact uses "filter_contacts" to only display contacts that are not yet participating in the conversation
Diffstat (limited to 'src/main/res/menu')
-rw-r--r--src/main/res/menu/select_multiple.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/res/menu/select_multiple.xml b/src/main/res/menu/select_multiple.xml
new file mode 100644
index 00000000..4240849f
--- /dev/null
+++ b/src/main/res/menu/select_multiple.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <item
+ android:id="@+id/selection_submit"
+ android:title="@string/invite_contact"
+ android:showAsAction="always" />
+
+</menu>