Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstefan-niedermann <info@niedermann.it>2020-01-25 15:41:44 +0300
committerstefan-niedermann <info@niedermann.it>2020-01-25 15:41:44 +0300
commitd8ea4da54c92ebb4d65ebb07685a11de6109181a (patch)
tree8f89ce3a0f533120067854997e7b06ee8cfba221 /app/src/main/res/xml
parenta1be4f72849142ef99b32f7f782347d8ca22e45c (diff)
#365 Password protection
Added preference UI
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r--app/src/main/res/xml/preferences.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml
index d1668a87..3b3c4ead 100644
--- a/app/src/main/res/xml/preferences.xml
+++ b/app/src/main/res/xml/preferences.xml
@@ -1,6 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+ <SwitchPreference
+ android:defaultValue="@string/pref_value_lock"
+ android:icon="@drawable/ic_lock_grey600_24dp"
+ android:key="@string/pref_key_lock"
+ android:layout="@layout/item_pref"
+ android:summary="@string/simple_beta"
+ android:title="@string/settings_lock" />
+
<ListPreference
android:defaultValue="@string/pref_value_mode_edit"
android:entries="@array/noteMode_entries"