diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-08-26 20:28:26 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-08-28 20:57:18 +0200 |
commit | e21da762dc99cfa6e8881a5c1ac2aa892de7762e (patch) | |
tree | 413cfe527f75ac73857ef9ad51f3c5b1c1c16eaf /src/main/res | |
parent | 3e5c026f31b2403ea8e2387c1360bedb1ca4c27a (diff) |
make QUICK_SHARE_ATTACHMENT_CHOICE configurable
Diffstat (limited to 'src/main/res')
-rw-r--r-- | src/main/res/values/defaults.xml | 1 | ||||
-rw-r--r-- | src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | src/main/res/xml/preferences.xml | 5 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/main/res/values/defaults.xml b/src/main/res/values/defaults.xml index 98509a48e..214dbe642 100644 --- a/src/main/res/values/defaults.xml +++ b/src/main/res/values/defaults.xml @@ -108,6 +108,7 @@ <string name="default_font_size">small</string> <bool name="start_searching">false</bool> <bool name="show_record_voice_btn">true</bool> + <bool name="quick_share_attachment_choice">true</bool> <string-array name="domains"> <item>pix-art.de</item> diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 47a01d3c9..f5dabc615 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -810,4 +810,6 @@ <string name="no_location_permission">Pix-Art Messenger needs access to location services</string> <string name="pref_show_record_voice_btn_summary">Show record voice button in chats as quick action</string> <string name="pref_show_record_voice_btn">Show record voice button</string> + <string name="pref_use_quick_share_attachment_choice_summary">Replace send button with attachment choice if no message is typed. Otherwise show quick actions, which can be cofigured in the following setting.</string> + <string name="pref_quick_share_attachment_choice">Attachment choice</string> </resources> diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 31ca6158b..b4edb7a34 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -38,6 +38,11 @@ android:key="presence_colored_names" android:summary="@string/pref_use_colored_names_to_indicate_status_summary" android:title="@string/pref_use_colored_names_to_indicate_status" /> + <CheckBoxPreference + android:defaultValue="@bool/quick_share_attachment_choice" + android:key="quick_share_attachment_choice" + android:summary="@string/pref_use_quick_share_attachment_choice_summary" + android:title="@string/pref_quick_share_attachment_choice" /> <ListPreference android:defaultValue="@string/quick_action" android:dialogTitle="@string/choose_quick_action" |