preferences_privacy.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
 3    <PreferenceCategory android:title="@string/pref_category_engagement_notifications">
 4        <SwitchPreferenceCompat
 5            android:defaultValue="@bool/confirm_messages"
 6            android:icon="@drawable/ic_done_all_24dp"
 7            android:key="confirm_messages"
 8            android:summary="@string/pref_confirm_messages_summary"
 9            android:title="@string/pref_confirm_messages" />
10        <SwitchPreferenceCompat
11            android:defaultValue="@bool/chat_states"
12            android:icon="@drawable/ic_keyboard_24dp"
13            android:key="chat_states"
14            android:summary="@string/pref_chat_states_summary"
15            android:title="@string/pref_chat_states" />
16        <SwitchPreferenceCompat
17            android:defaultValue="@bool/last_activity"
18            android:key="last_activity"
19            android:icon="@drawable/ic_visibility_24dp"
20            android:summary="@string/pref_broadcast_last_activity_summary"
21            android:title="@string/pref_broadcast_last_activity" />
22
23    </PreferenceCategory>
24    <PreferenceCategory android:title="@string/pref_category_interaction">
25        <SwitchPreferenceCompat
26            android:defaultValue="@bool/allow_message_correction"
27            android:icon="@drawable/ic_edit_24dp"
28            android:key="allow_message_correction"
29            android:summary="@string/pref_allow_message_correction_summary"
30            android:title="@string/pref_allow_message_correction" />
31
32    </PreferenceCategory>
33    <PreferenceCategory android:title="@string/pref_presence_settings">
34        <SwitchPreferenceCompat
35            android:defaultValue="@bool/manually_change_presence"
36            android:disableDependentsState="true"
37            android:icon="@drawable/ic_announcement_24dp"
38            android:key="manually_change_presence"
39            android:summary="@string/pref_manually_change_presence_summary"
40            android:title="@string/pref_manually_change_presence" />
41        <SwitchPreferenceCompat
42            android:defaultValue="@bool/away_when_screen_off"
43            android:dependency="manually_change_presence"
44            android:icon="@drawable/ic_screen_lock_portrait_24dp"
45            android:key="away_when_screen_off"
46            android:summary="@string/pref_away_when_screen_off_summary"
47            android:title="@string/pref_away_when_screen_off" />
48        <SwitchPreferenceCompat
49            android:defaultValue="@bool/dnd_on_silent_mode"
50            android:dependency="manually_change_presence"
51            android:icon="@drawable/ic_do_not_disturb_on_24dp"
52            android:key="dnd_on_silent_mode"
53            android:summary="@string/pref_dnd_on_silent_mode_summary"
54            android:title="@string/pref_dnd_on_silent_mode" />
55        <SwitchPreferenceCompat
56            android:defaultValue="@bool/treat_vibrate_as_silent"
57            android:dependency="dnd_on_silent_mode"
58            android:icon="@drawable/ic_vibration_24dp"
59            android:key="treat_vibrate_as_silent"
60            android:summary="@string/pref_treat_vibrate_as_dnd_summary"
61            android:title="@string/pref_treat_vibrate_as_silent" />
62    </PreferenceCategory>
63    <PreferenceCategory android:title="@string/pref_category_application">
64        <SwitchPreferenceCompat
65            android:defaultValue="@bool/send_crash_reports"
66            android:icon="@drawable/ic_report_24dp"
67            android:key="send_crash_reports"
68            android:summary="@string/pref_never_send_crash_summary"
69            android:title="@string/pref_send_crash_reports" />
70
71    </PreferenceCategory>
72
73</PreferenceScreen>