From 7aa49998425b768244715b19c9779202c0145230 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sat, 9 Feb 2019 14:34:49 +0100 Subject: show web link previews in chat fixes #113 --- src/main/res/layout/link_layout.xml | 55 +++++++++++++++++++++++++++++++++ src/main/res/layout/message_content.xml | 5 +++ src/main/res/values/bools.xml | 1 + src/main/res/values/strings.xml | 4 ++- src/main/res/xml/preferences.xml | 5 +++ 5 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 src/main/res/layout/link_layout.xml (limited to 'src/main/res') diff --git a/src/main/res/layout/link_layout.xml b/src/main/res/layout/link_layout.xml new file mode 100644 index 000000000..68e7a6cc7 --- /dev/null +++ b/src/main/res/layout/link_layout.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/res/layout/message_content.xml b/src/main/res/layout/message_content.xml index f14f310c3..be2bbf3db 100644 --- a/src/main/res/layout/message_content.xml +++ b/src/main/res/layout/message_content.xml @@ -28,6 +28,11 @@ android:scaleType="centerCrop" app:riv_corner_radius="@dimen/rounded_image_border" /> + + true + true \ No newline at end of file diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 5742775e0..3a2eb4ea7 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -823,8 +823,10 @@ Please enter your nickname which will be visible to your contacts. No nickname set. Automatically join this group chat + Show previews of web links in chat + Show previews of web links directly inside the chat view. Play GIF files in chat - Setting this to true plays GIF files directly inside the chat view. + Play GIF files directly inside the chat view. Open with… XEP-0050: Ad-Hoc Commands: user invite Choose account diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 52a957f98..15fe0fc34 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -76,6 +76,11 @@ android:key="play_gif_inside" android:summary="@string/pref_play_gif_inside_summary" android:title="@string/pref_play_gif_inside" /> +