aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2016-11-24 21:03:21 +0100
committerChristian Schneppe <christian@pix-art.de>2016-11-24 21:03:21 +0100
commitdfaf8f40c59eb27d4f4e67aabb04b64ff7b043be (patch)
treed3aa93dc40a0036e0536af218c8821553f9c13c2 /src/main/res
parent5d4d04b2a448b594ebb1f75ee80e8bcf90762cf1 (diff)
added share button to account details
Diffstat (limited to 'src/main/res')
-rw-r--r--src/main/res/menu/editaccount.xml16
-rw-r--r--src/main/res/values/strings.xml3
2 files changed, 19 insertions, 0 deletions
diff --git a/src/main/res/menu/editaccount.xml b/src/main/res/menu/editaccount.xml
index 1e968c2d4..5841524e6 100644
--- a/src/main/res/menu/editaccount.xml
+++ b/src/main/res/menu/editaccount.xml
@@ -1,5 +1,21 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/action_share"
+ android:title="@string/share_uri_with"
+ android:icon="?attr/icon_share"
+ android:showAsAction="always">
+ <menu>
+ <item
+ android:id="@+id/action_share_barcode"
+ android:title="@string/share_as_barcode"/>
+ <item
+ android:id="@+id/action_share_uri"
+ android:title="@string/share_as_uri"/>
+ <item android:id="@+id/action_share_http"
+ android:title="@string/share_as_http"/>
+ </menu>
+ </item>
+
<item
android:id="@+id/action_change_presence"
android:showAsAction="always"
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 1d33ecffd..1dbb0454c 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -715,4 +715,7 @@
<string name="verified_fingerprints">Verified fingerprints</string>
<string name="use_camera_icon_to_scan_barcode">Use the camera to scan a contacts barcode</string>
<string name="please_wait_for_keys_to_be_fetched">Please wait for keys to be fetched</string>
+ <string name="share_as_barcode">Share as Barcode</string>
+ <string name="share_as_uri">Share as XMPP URI</string>
+ <string name="share_as_http">Share as HTTP link</string>
</resources>