aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-02-08 14:17:33 +0100
committerChristian Schneppe <christian@pix-art.de>2019-02-08 14:28:27 +0100
commit2e92fe8044127712ef790320c27783feaf9f1aa7 (patch)
tree98e69288e798f1a131e39522e3cd74078b8439e0 /src/main/res
parentec08e6dd6200f3544a9681ab6463b0f90624cf01 (diff)
parent05476102032e921b76db1ad9805b238d0355e94a (diff)
use ad-hoc commands for invite links if server supports this
Diffstat (limited to 'src/main/res')
-rw-r--r--src/main/res/layout/activity_edit_account.xml22
-rw-r--r--src/main/res/values/strings.xml1
2 files changed, 23 insertions, 0 deletions
diff --git a/src/main/res/layout/activity_edit_account.xml b/src/main/res/layout/activity_edit_account.xml
index 30ae5b192..6aced7fd3 100644
--- a/src/main/res/layout/activity_edit_account.xml
+++ b/src/main/res/layout/activity_edit_account.xml
@@ -520,6 +520,28 @@
</TableRow>
<TableRow
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:text="@string/server_info_adhoc_invite"
+ android:textAppearance="@style/TextAppearance.Conversations.Body1" />
+
+ <TextView
+ android:id="@+id/server_info_adhoc_invite"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="end"
+ android:paddingStart="4dp"
+ android:paddingLeft="4dp"
+ android:textAppearance="@style/TextAppearance.Conversations.Body1" />
+ </TableRow>
+
+ <TableRow
android:id="@+id/push_row"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml
index 39b050b05..0678c4710 100644
--- a/src/main/res/values/strings.xml
+++ b/src/main/res/values/strings.xml
@@ -825,6 +825,7 @@
<string name="pref_play_gif_inside">Play GIF files in chat</string>
<string name="pref_play_gif_inside_summary">Setting this to true plays GIF files directly inside the chat view.</string>
<string name="open_with">Open with…</string>
+ <string name="server_info_adhoc_invite">XEP-0050: Ad-Hoc Commands: user invite</string>
<string name="choose_account">Choose account</string>
<string name="set_profile_picture">Pix-Art Messenger profile picture</string>
<string name="restore_backup">Restore backup</string>