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        <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
38    </PreferenceCategory>
39    <PreferenceCategory android:title="@string/pref_presence_settings">
40        <SwitchPreferenceCompat
41            android:defaultValue="@bool/manually_change_presence"
42            android:disableDependentsState="true"
43            android:icon="@drawable/ic_announcement_24dp"
44            android:key="manually_change_presence"
45            android:summary="@string/pref_manually_change_presence_summary"
46            android:title="@string/pref_manually_change_presence" />
47        <SwitchPreferenceCompat
48            android:defaultValue="@bool/away_when_screen_off"
49            android:dependency="manually_change_presence"
50            android:icon="@drawable/ic_screen_lock_portrait_24dp"
51            android:key="away_when_screen_off"
52            android:summary="@string/pref_away_when_screen_off_summary"
53            android:title="@string/pref_away_when_screen_off" />
54        <SwitchPreferenceCompat
55            android:defaultValue="@bool/dnd_on_silent_mode"
56            android:dependency="manually_change_presence"
57            android:icon="@drawable/ic_do_not_disturb_on_24dp"
58            android:key="dnd_on_silent_mode"
59            android:summary="@string/pref_dnd_on_silent_mode_summary"
60            android:title="@string/pref_dnd_on_silent_mode" />
61        <SwitchPreferenceCompat
62            android:defaultValue="@bool/treat_vibrate_as_silent"
63            android:dependency="dnd_on_silent_mode"
64            android:icon="@drawable/ic_vibration_24dp"
65            android:key="treat_vibrate_as_silent"
66            android:summary="@string/pref_treat_vibrate_as_dnd_summary"
67            android:title="@string/pref_treat_vibrate_as_silent" />
68    </PreferenceCategory>
69    <PreferenceCategory android:key="category_application" android:title="@string/pref_category_application">
70        <SwitchPreferenceCompat
71            android:defaultValue="@bool/send_crash_reports"
72            android:icon="@drawable/ic_report_24dp"
73            android:key="send_crash_reports"
74            android:summary="@string/pref_never_send_crash_summary"
75            android:title="@string/pref_send_crash_reports" />
76
77    </PreferenceCategory>
78
79</PreferenceScreen>