Files
arcanechat-android/res/xml/preferences_advanced.xml
T
bjoern 2d01fd9b6f sending reactions (#2680)
* add basic reaction view

* reuse pill background

* make pill border a little more visible; this affects sended reactions as well as received ones

* use 🤣 instead of 😂 to differ more from 😢

also, 😂 is a bit outdated for younger generations
(so is probably 🤣 but not that much)
(alternative would be 💀 for laughing,
but that is probably not compatible between generations)

* use 🙁 instead of 😢 for 'sad' to distict from lol

lol gets revered to 😂 as
🤣 seems to be even a more non-go (thanks for expertise, young folks!)

* wording: we add one reaction, not many

* show/hide add-reaction-view together with action mode

* pass message&view to showAddReactionView()

* add sendReactions() api

* create AddReactionView class

* send reactions on click

* hide AddReactiobView on sending emoji

* detect self-reaction

* feat: remove selections

* position AddReactionView atop of parent view

* move AddReactionView up a bit

* padding top/bottom

* center for now, this also postpones rtl/ltr

* force initial layout

* move slightly more off the bubble, keep away a bit from screen margin

* move AddReactionsView left/right depending on incoming/outgoing mails

* do not allow reactions in read-only chats

* do not allow to react to videochat-invitations and info; the latter may makes sense at some point, however, to lower burder on other implementations, we do not send them for now

* hide reaction-picker when leaving action mode with 'back'

* hide reaction-picker when leaving action mode with 'back'

* scroll reaction-panel together with recyclerview; this does not happen if new messages come in, however, this is a minor (and a stable panel position can be regarded even as a feature)

* add sending reactions as an experimental feature as long not at least all system display reactions

* clarify that reactions are currently not seen by all members

* prefer View.INVISIBLE over offscreen hack
2023-10-20 15:17:24 +02:00

105 lines
4.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="@string/autocrypt">
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="true"
android:key="pref_prefer_e2ee"
android:title="@string/autocrypt_prefer_e2ee"/>
<Preference android:key="pref_send_autocrypt_setup_message"
android:title="@string/autocrypt_send_asm_title"
android:summary="@string/autocrypt_explain"/>
<Preference android:key="pref_manage_keys"
android:title="@string/pref_manage_keys"/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_imap_folder_handling">
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="true"
android:key="pref_sentbox_watch"
android:title="@string/pref_watch_sent_folder"/>
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="true"
android:key="pref_bcc_self"
android:title="@string/pref_send_copy_to_self"/>
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="true"
android:key="pref_mvbox_move"
android:title="@string/pref_auto_folder_moves"
android:summary="@string/pref_auto_folder_moves_explain"/>
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_only_fetch_mvbox"
android:title="@string/pref_only_fetch_mvbox_title"
android:summary="@string/pref_only_fetch_mvbox_explain" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_app_access">
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_screen_security"
android:summary="@string/pref_screen_security_explain"
android:title="@string/pref_screen_security" />
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_incognito_keyboard"
android:summary="@string/pref_incognito_keyboard_explain"
android:title="@string/pref_incognito_keyboard" />
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_builtin_camera"
android:title="@string/pref_use_inapp_camera"
android:summary="@string/pref_use_inapp_camera_explain"/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_experimental_features">
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_new_broadcast_list"
android:title="@string/broadcast_lists"/>
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_send_reactions"
android:title="@string/reactions"/>
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_location_streaming_enabled"
android:title="@string/pref_on_demand_location_streaming"/>
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="false"
android:key="pref_developer_mode_enabled"
android:summary="@string/pref_developer_mode_explain"
android:title="@string/pref_developer_mode"/>
<Preference android:key="pref_webrtc_instance"
android:title="@string/videochat_instance"
android:summary="@string/none"/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_other">
<Preference android:key="pref_view_log"
android:title="@string/pref_view_log"/>
</PreferenceCategory>
</PreferenceScreen>