<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">

    <Preference
        app:key="app_version"
        app:title="@string/settings_app_version_title"/>

    <SwitchPreferenceCompat
        app:key="beta"
        app:title="@string/settings_beta"/>

    <PreferenceCategory
        app:title="@string/settings_search_title">

        <ListPreference
            app:key="per_page"
            app:title="@string/settings_galleries_per_page"
            app:entries="@array/settings_galleries_per_page"
            app:entryValues="@array/settings_galleries_per_page"
            app:defaultValue="25"
            app:useSimpleSummaryProvider="true"/>

        <Preference
            app:key="default_query"
            app:title="@string/settings_default_query"
            app:useSimpleSummaryProvider="true"/>

    </PreferenceCategory>

    <PreferenceCategory
        app:title="@string/settings_storage">

        <Preference
            app:fragment="xyz.quaver.pupil.ui.fragment.ManageStorageFragment"
            app:title="@string/settings_manage_storage" />

        <Preference
            app:key="download_folder_name"
            app:title="@string/settings_download_folder_name"
            app:defaultValue="[-id-] -title-"/>

        <Preference
            app:key="download_folder"
            app:title="@string/settings_download_folder"/>

        <SwitchPreferenceCompat
            app:key="nomedia"
            app:title="@string/settings_nomedia_title"/>

    </PreferenceCategory>

    <PreferenceCategory
        app:title="@string/settings_app_lock">

        <Preference
            app:key="app_lock"
            app:title="@string/settings_app_lock_type"/>

    </PreferenceCategory>

    <PreferenceCategory
        app:title="@string/settings_miscellaneous_title">

        <ListPreference
            app:key="tag_translation"
            app:title="@string/settings_tag_translation"
            app:useSimpleSummaryProvider="true"/>

        <Preference
            app:key="proxy"
            app:title="@string/settings_proxy_title"/>

        <SwitchPreferenceCompat
            app:key="rtl"
            app:title="@string/settings_rtl"
            app:defaultValue="false" />

        <SwitchPreferenceCompat
            app:key="security_mode"
            app:title="@string/settings_security_mode_title"
            app:summary="@string/settings_security_mode_summary"/>

        <SwitchPreferenceCompat
            app:key="dark_mode"
            app:title="@string/settings_dark_mode_title"
            app:summary="@string/settings_dark_mode_summary"/>

        <Preference
            app:fragment="xyz.quaver.pupil.ui.fragment.ManageFavoritesFragment"
            app:title="@string/settings_manage_favorites"/>

        <Preference
            app:key="user_id"
            app:title="@string/settings_user_id"/>

        <Preference
            app:key="oss"
            app:title="@string/settings_oss"/>

    </PreferenceCategory>

</PreferenceScreen>