<?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">

    <Preference
        app:icon="@drawable/ic_update"
        app:key="update_ytdl"
        app:summary="@string/ytdl_update_hint"
        app:title="@string/update_ytdl" />


    <SwitchPreferenceCompat
        android:widgetLayout="@layout/preferece_material_switch"
        app:defaultValue="true"
        app:icon="@drawable/ic_update"
        android:key="auto_update_ytdlp"
        app:title="@string/auto_update_ytdlp" />

    <Preference
        app:icon="@drawable/ic_info"
        app:key="ytdl-version"
        app:title="@string/ytdl_version"/>

    <SwitchPreferenceCompat
        android:widgetLayout="@layout/preferece_material_switch"
        android:defaultValue="true"
        app:icon="@drawable/ic_nightly"
        app:key="nightly_ytdl"
        android:title="@string/update_ytdl_nightly"
        />

    <SwitchPreferenceCompat
        android:widgetLayout="@layout/preferece_material_switch"
        app:defaultValue="false"
        android:icon="@drawable/ic_format"
        android:key="update_formats"
        app:summary="@string/update_formats_summary"
        app:title="@string/update_formats" />

    <ListPreference
        android:defaultValue="yt-dlp"
        android:entries="@array/formats_source"
        android:entryValues="@array/formats_source_values"
        android:icon="@drawable/baseline_manage_search_24"
        app:key="formats_source"
        app:useSimpleSummaryProvider="true"
        app:title="@string/format_source" />

    <ListPreference
        android:defaultValue="filesize"
        android:entries="@array/format_ordering"
        android:entryValues="@array/format_ordering_values"
        android:icon="@drawable/baseline_sort_24"
        app:key="format_order"
        app:useSimpleSummaryProvider="true"
        app:title="@string/format_order" />

    <EditTextPreference
        app:key="piped_instance"
        app:defaultValue="https://api.piped.projectsegfau.lt"
        android:summary="@string/piped_instance_summary"
        app:title="@string/piped_instance" />

    <SwitchPreferenceCompat
        android:widgetLayout="@layout/preferece_material_switch"
        app:defaultValue="false"
        android:icon="@drawable/ic_update_app"
        android:key="update_app"
        app:summary="@string/update_app_summary"
        app:title="@string/update_app" />

    <SwitchPreferenceCompat
        android:widgetLayout="@layout/preferece_material_switch"
        app:defaultValue="false"
        android:icon="@drawable/ic_update_app"
        android:key="update_beta"
        app:summary="@string/update_app_beta_summary"
        app:title="@string/update_app_beta" />

</PreferenceScreen>