diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-11-30 19:49:47 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-11-30 19:50:41 +0100 |
commit | 14fb5eefbcb4a9d7661e476cc2a05fe10da3f11a (patch) | |
tree | 351b0d2fc911d4b4e5a188dc95c53071157c0759 /src/main/res | |
parent | 964cf03653fb28f49c373421d472ae30b641b546 (diff) |
let the user forbid android from taking screenshots
Diffstat (limited to '')
-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 e8ef0805e..b516e5c43 100644 --- a/src/main/res/values/defaults.xml +++ b/src/main/res/values/defaults.xml @@ -108,6 +108,7 @@ <bool name="start_searching">false</bool> <bool name="show_record_voice_btn">true</bool> <bool name="quick_share_attachment_choice">true</bool> + <bool name="screen_security">false</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 8e8d26713..06493e0a9 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -842,5 +842,7 @@ <string name="device_does_not_support_unknown_source_op">Your device does not support allowing app installs from unknon sources.</string> <string name="reject_request">Reject request</string> <string name="error_message_copied_to_clipboard">Copied error message to clipboard</string> + <string name="pref_screen_security_summary">Treat the content as secure and preventing it from appearing in screenshots.</string> + <string name="pref_screen_security">Forbid screenshots</string> </resources> diff --git a/src/main/res/xml/preferences.xml b/src/main/res/xml/preferences.xml index 819fcded9..e5ccfa8e4 100644 --- a/src/main/res/xml/preferences.xml +++ b/src/main/res/xml/preferences.xml @@ -256,6 +256,11 @@ android:value="security" /> </intent> <CheckBoxPreference + android:defaultValue="@bool/screen_security" + android:key="screen_security" + android:summary="@string/pref_screen_security_summary" + android:title="@string/pref_screen_security" /> + <CheckBoxPreference android:defaultValue="@bool/confirm_messages" android:key="confirm_messages" android:summary="@string/pref_confirm_messages_summary" |