mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 20:29:52 +01:00
Migrate settings to PreferenceFragmentCompat
Includes code from https://github.com/consp1racy/android-support-preference License: Apache License v2.0
This commit is contained in:
70
briar-android/res/xml/settings.xml
Normal file
70
briar-android/res/xml/settings.xml
Normal file
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="@string/network_settings_title">
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="false"
|
||||
android:entries="@array/bt_setting_names"
|
||||
android:entryValues="@array/boolean_array"
|
||||
android:key="pref_key_bluetooth"
|
||||
android:persistent="false"
|
||||
android:summary="%s"
|
||||
android:title="@string/bluetooth_setting"/>
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="true"
|
||||
android:entries="@array/tor_mobile_setting_names"
|
||||
android:entryValues="@array/boolean_array"
|
||||
android:key="pref_key_tor_mobile"
|
||||
android:persistent="false"
|
||||
android:summary="%s"
|
||||
android:title="@string/tor_mobile_setting"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="@string/panic_setting_title">
|
||||
|
||||
<Preference
|
||||
android:summary="@string/panic_setting_hint"
|
||||
android:title="@string/panic_setting">
|
||||
|
||||
<intent
|
||||
android:targetClass="org.briarproject.android.panic.PanicPreferencesActivity"
|
||||
android:targetPackage="org.briarproject"/>
|
||||
|
||||
</Preference>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="@string/notification_settings_title">
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="pref_key_notify_private_messages"
|
||||
android:persistent="false"
|
||||
android:title="@string/notify_private_messages_setting"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="pref_key_notify_forum_posts"
|
||||
android:persistent="false"
|
||||
android:title="@string/notify_forum_posts_setting"/>
|
||||
|
||||
<CheckBoxPreference
|
||||
android:defaultValue="true"
|
||||
android:key="pref_key_notify_vibration"
|
||||
android:persistent="false"
|
||||
android:title="@string/notify_vibration_setting"/>
|
||||
|
||||
<Preference
|
||||
android:key="pref_key_notify_sound"
|
||||
android:title="@string/notify_sound_setting"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user