add SwitchCompat to preferences

Closes #3137
This commit is contained in:
agrajaghh
2015-05-17 14:13:34 +02:00
committed by Moxie Marlinspike
parent 9a6b559afe
commit 3e890e11d9
7 changed files with 66 additions and 10 deletions

View File

@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference android:key="pref_enable_passphrase_temporary"
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:key="pref_enable_passphrase_temporary"
android:defaultValue="true"
android:title="@string/preferences__enable_passphrase"
android:summary="@string/preferences__enable_local_encryption_of_messages_and_keys"/>
@@ -21,7 +22,8 @@
android:key="pref_timeout_interval"
android:dependency="pref_timeout_passphrase"/>
<CheckBoxPreference android:defaultValue="true"
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="true"
android:key="pref_screen_security"
android:title="@string/preferences__screen_security"
android:summary="@string/preferences__disable_screen_security_to_allow_screen_shots" />