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:icon="@drawable/ic_visibility_24dp"
19            android:key="last_activity"
20            android:summary="@string/pref_broadcast_last_activity_summary"
21            android:title="@string/pref_broadcast_last_activity" />
22        <SwitchPreferenceCompat
23            android:defaultValue="@bool/send_link_previews"
24            android:icon="@drawable/ic_link_24dp"
25            android:key="send_link_previews"
26            android:summary="@string/pref_send_link_previews_summary"
27            android:title="@string/pref_send_link_previews" />
28
29    </PreferenceCategory>
30    <PreferenceCategory android:title="@string/pref_category_interaction">
31        <SwitchPreferenceCompat
32            android:defaultValue="@bool/allow_message_correction"
33            android:icon="@drawable/ic_edit_24dp"
34            android:key="allow_message_correction"
35            android:summary="@string/pref_allow_message_correction_summary"
36            android:title="@string/pref_allow_message_correction" />
37        <SwitchPreferenceCompat
38            android:defaultValue="@bool/accept_invites_from_strangers"
39            android:icon="@drawable/ic_domino_mask_24dp"
40            android:key="accept_invites_from_strangers"
41            android:summary="@string/pref_accept_invites_from_strangers_summary"
42            android:title="@string/pref_accept_invites_from_strangers" />
43    </PreferenceCategory>
44    <PreferenceCategory android:title="@string/pref_presence_settings">
45        <SwitchPreferenceCompat
46            android:defaultValue="@bool/manually_change_presence"
47            android:disableDependentsState="true"
48            android:icon="@drawable/ic_announcement_24dp"
49            android:key="manually_change_presence"
50            android:summary="@string/pref_manually_change_presence_summary"
51            android:title="@string/pref_manually_change_presence" />
52        <SwitchPreferenceCompat
53            android:defaultValue="@bool/away_when_screen_off"
54            android:dependency="manually_change_presence"
55            android:icon="@drawable/ic_screen_lock_portrait_24dp"
56            android:key="away_when_screen_off"
57            android:summary="@string/pref_away_when_screen_off_summary"
58            android:title="@string/pref_away_when_screen_off" />
59        <SwitchPreferenceCompat
60            android:defaultValue="@bool/dnd_on_silent_mode"
61            android:dependency="manually_change_presence"
62            android:icon="@drawable/ic_do_not_disturb_on_24dp"
63            android:key="dnd_on_silent_mode"
64            android:summary="@string/pref_dnd_on_silent_mode_summary"
65            android:title="@string/pref_dnd_on_silent_mode" />
66        <SwitchPreferenceCompat
67            android:defaultValue="@bool/treat_vibrate_as_silent"
68            android:dependency="dnd_on_silent_mode"
69            android:icon="@drawable/ic_vibration_24dp"
70            android:key="treat_vibrate_as_silent"
71            android:summary="@string/pref_treat_vibrate_as_dnd_summary"
72            android:title="@string/pref_treat_vibrate_as_silent" />
73    </PreferenceCategory>
74    <PreferenceCategory android:title="@string/pref_category_application">
75        <SwitchPreferenceCompat
76            android:defaultValue="@bool/send_crash_reports"
77            android:icon="@drawable/ic_report_24dp"
78            android:key="send_crash_reports"
79            android:summary="@string/pref_never_send_crash_summary"
80            android:title="@string/pref_send_crash_reports" />
81
82    </PreferenceCategory>
83
84</PreferenceScreen>