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