diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-04-01 15:27:37 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2021-04-01 15:29:04 +0300 |
commit | 9c425e291a1f01fc6eb779939eb0e49ee29c6077 (patch) | |
tree | 3a2fc3a026c2773f0a2c65e838843d4b362a525b /app/src/main/res | |
parent | 0003e8babb04dbed5c267b004c8d3fb72eee6858 (diff) |
Fix #1098 Prevent screen capture
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/ic_baseline_screen_lock_portrait_24.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/preferences.xml | 7 |
3 files changed, 14 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/ic_baseline_screen_lock_portrait_24.xml b/app/src/main/res/drawable/ic_baseline_screen_lock_portrait_24.xml new file mode 100644 index 00000000..8ec144f5 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_screen_lock_portrait_24.xml @@ -0,0 +1,5 @@ +<vector android:height="24dp" android:tint="#757575" + android:viewportHeight="24" android:viewportWidth="24" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + <path android:fillColor="@android:color/white" android:pathData="M10,16h4c0.55,0 1,-0.45 1,-1v-3c0,-0.55 -0.45,-1 -1,-1v-1c0,-1.11 -0.9,-2 -2,-2 -1.11,0 -2,0.9 -2,2v1c-0.55,0 -1,0.45 -1,1v3c0,0.55 0.45,1 1,1zM10.8,10c0,-0.66 0.54,-1.2 1.2,-1.2 0.66,0 1.2,0.54 1.2,1.2v1h-2.4v-1zM17,1L7,1c-1.1,0 -2,0.9 -2,2v18c0,1.1 0.9,2 2,2h10c1.1,0 2,-0.9 2,-2L19,3c0,-1.1 -0.9,-2 -2,-2zM17,19L7,19L7,5h10v14z"/> +</vector> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 93a60a97..960fb693 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -45,6 +45,7 @@ <string name="settings_lock">App lock (Beta)</string> <string name="settings_lock_summary">Device credentials</string> <string name="settings_background_sync">Background synchronization</string> + <string name="settings_prevent_screen_capture">Prevent screen capture</string> <string name="error_sync">Synchronization failed: %1$s</string> <string name="error_synchronization">Synchronization failed</string> @@ -103,6 +104,7 @@ <string name="pref_key_font_size" translatable="false">fontSize</string> <string name="pref_key_wifi_only" translatable="false">wifiOnly</string> <string name="pref_key_lock" translatable="false">lock</string> + <string name="pref_key_prevent_screen_capture" translatable="false">preventScreenCapture</string> <string name="pref_category_security" translatable="false">security</string> <string name="pref_key_last_note_mode" translatable="false">lastNoteMode</string> <string name="pref_key_background_sync" translatable="false">backgroundSync</string> diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 5cc08727..087f4ac2 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -95,6 +95,13 @@ android:layout="@layout/item_pref" android:summary="@string/settings_lock_summary" android:title="@string/settings_lock" /> + + <it.niedermann.owncloud.notes.branding.BrandedSwitchPreference + android:defaultValue="false" + android:icon="@drawable/ic_baseline_screen_lock_portrait_24" + android:key="@string/pref_key_prevent_screen_capture" + android:layout="@layout/item_pref" + android:title="@string/settings_prevent_screen_capture" /> </it.niedermann.owncloud.notes.branding.BrandedPreferenceCategory> </PreferenceScreen> |