<?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:key="general_preferences"
    android:title="@string/settings_category_history_title">

    <SwitchPreferenceCompat
        android:defaultValue="true"
        android:key="@string/enable_watch_history_key"
        android:summary="@string/enable_watch_history_summary"
        android:title="@string/enable_watch_history_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

    <SwitchPreferenceCompat
        android:defaultValue="true"
        android:dependency="@string/enable_watch_history_key"
        android:key="@string/enable_playback_resume_key"
        android:summary="@string/enable_playback_resume_summary"
        android:title="@string/enable_playback_resume_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />


    <SwitchPreferenceCompat
        android:defaultValue="true"
        android:key="@string/enable_search_history_key"
        android:summary="@string/enable_search_history_summary"
        android:title="@string/enable_search_history_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false" />

    <PreferenceCategory
        android:layout="@layout/settings_category_header_layout"
        android:title="@string/settings_category_clear_data_title"
        app:singleLineTitle="false"
        app:iconSpaceReserved="false">

        <Preference
            android:key="@string/metadata_cache_wipe_key"
            android:summary="@string/metadata_cache_wipe_summary"
            android:title="@string/metadata_cache_wipe_title"
            app:singleLineTitle="false"
            app:iconSpaceReserved="false" />

        <Preference
            android:key="@string/clear_views_history_key"
            android:summary="@string/clear_views_history_summary"
            android:title="@string/clear_views_history_title"
            app:singleLineTitle="false"
            app:iconSpaceReserved="false" />

        <Preference
            android:key="@string/clear_playback_states_key"
            android:summary="@string/clear_playback_states_summary"
            android:title="@string/clear_playback_states_title"
            app:singleLineTitle="false"
            app:iconSpaceReserved="false" />

        <Preference
            android:key="@string/clear_search_history_key"
            android:summary="@string/clear_search_history_summary"
            android:title="@string/clear_search_history_title"
            app:singleLineTitle="false"
            app:iconSpaceReserved="false" />

        <Preference
            android:key="@string/clear_cookie_key"
            android:summary="@string/clear_cookie_summary_new"
            android:title="@string/clear_cookie_title"
            app:singleLineTitle="false"
            app:iconSpaceReserved="false" />

    </PreferenceCategory>

</PreferenceScreen>
