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

    <Preference
        app:iconSpaceReserved="false"
        android:key="@string/sponsor_block_home_page_key"
        android:summary="@string/sponsor_block_home_page_summary"
        android:title="@string/sponsor_block_home_page_title"/>

    <Preference
        app:iconSpaceReserved="false"
        android:key="@string/sponsor_block_privacy_key"
        android:summary="@string/sponsor_block_privacy_summary"
        android:title="@string/sponsor_block_privacy_title"/>

    <PreferenceCategory
        android:layout="@layout/settings_category_header_layout"
        android:title="@string/settings">

        <SwitchPreference
            app:iconSpaceReserved="false"
            android:defaultValue="true"
            android:key="@string/sponsor_block_enable_key"
            android:summary="@string/sponsor_block_enable_summary"
            android:title="@string/sponsor_block_enable_title"/>

        <SwitchPreference
            app:iconSpaceReserved="false"
            android:dependency="@string/sponsor_block_enable_key"
            android:defaultValue="true"
            android:key="@string/sponsor_block_show_manual_skip_key"
            android:summary="@string/sponsor_block_show_manual_skip_summary"
            android:title="@string/sponsor_block_show_manual_skip_title"/>

        <SwitchPreference
            app:iconSpaceReserved="false"
            android:dependency="@string/sponsor_block_enable_key"
            android:defaultValue="true"
            android:key="@string/sponsor_block_graced_rewind_key"
            android:summary="@string/sponsor_block_graced_rewind_summary"
            android:title="@string/sponsor_block_graced_rewind_title"/>

        <SwitchPreference
            app:iconSpaceReserved="false"
            android:dependency="@string/sponsor_block_enable_key"
            android:defaultValue="true"
            android:key="@string/sponsor_block_notifications_key"
            android:summary="@string/sponsor_block_notifications_summary"
            android:title="@string/sponsor_block_notifications_title"/>

        <PreferenceScreen
            app:iconSpaceReserved="false"
            android:dependency="@string/sponsor_block_enable_key"
            android:fragment="org.schabi.newpipe.settings.SponsorBlockCategoriesSettingsFragment"
            android:key="@string/sponsor_block_categories_key"
            android:title="@string/settings_category_sponsor_block_categories_title"
            android:summary="@string/settings_category_sponsor_block_categories_summary"/>
    </PreferenceCategory>
</PreferenceScreen>