<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    android:key="@string/preferences_file_key">

    <Preference
        android:key="notificationPreference"
        android:title="@string/pref_title_edit_notification_settings" />

    <Preference
        android:key="tabPreference"
        android:title="@string/title_tab_preferences" />

    <Preference
        android:key="mutedUsersPreference"
        android:title="@string/action_view_mutes" />

    <Preference
        android:key="blockedUsersPreference"
        android:title="@string/action_view_blocks" />

    <Preference
        android:key="mutedDomainsPreference"
        android:title="@string/action_view_domain_mutes" />

    <PreferenceCategory android:title="@string/pref_publishing">
        <ListPreference
            android:defaultValue="public"
            android:entries="@array/post_privacy_names"
            android:entryValues="@array/post_privacy_values"
            android:key="defaultPostPrivacy"
            android:summary="%s"
            android:title="@string/pref_default_post_privacy" />

        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:icon="@drawable/ic_eye_24dp"
            android:key="defaultMediaSensitivity"
            android:title="@string/pref_default_media_sensitivity" />
    </PreferenceCategory>

    <PreferenceCategory android:title="@string/pref_title_timelines">
        <SwitchPreferenceCompat
            android:key="mediaPreviewEnabled"
            android:title="@string/pref_title_show_media_preview" />

        <SwitchPreferenceCompat
            android:key="alwaysShowSensitiveMedia"
            android:title="@string/pref_title_alway_show_sensitive_media" />
    </PreferenceCategory>

    <PreferenceCategory android:title="@string/pref_title_timeline_filters">
        <Preference
            android:key="publicFilters"
            android:title="@string/pref_title_public_filter_keywords" />

        <Preference
            android:key="notificationFilters"
            android:title="@string/title_notifications" />

        <Preference
            android:key="homeFilters"
            android:title="@string/title_home" />

        <Preference
            android:key="threadFilters"
            android:title="@string/pref_title_thread_filter_keywords" />
    </PreferenceCategory>
</androidx.preference.PreferenceScreen>
