<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:tools="http://schemas.android.com/tools"
    xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto">
    <PreferenceCategory
        app:key="pref_androidacy_repo"
        app:title="@string/androidacy_repo_name">
        <SwitchPreferenceCompat
            app:icon="@drawable/ic_baseline_extension_24"
            app:key="pref_androidacy_repo_enabled"
            app:singleLineTitle="false"
            app:switchTextOff="@string/repo_disabled"
            app:switchTextOn="@string/repo_enabled"
            tools:ignore="DuplicateSpeakableTextCheck" />
        <!-- Initially hidden edittextpreference for pref_androidacy_api_token -->
        <EditTextPreference
            app:icon="@drawable/ic_baseline_vpn_key_24"
            app:key="pref_androidacy_repo_api_token"
            android:maxLength="64"
            app:singleLineTitle="false"
            app:dependency="pref_androidacy_repo_enabled"
            app:isPreferenceVisible="false"
            app:title="@string/api_key" />
        <SwitchPreferenceCompat
            app:defaultValue="false"
            app:dependency="pref_androidacy_repo_enabled"
            app:icon="@drawable/ic_baseline_bug_report_24"
            app:key="pref_androidacy_test_mode"
            app:singleLineTitle="false"
            app:summary="@string/androidacy_test_mode_desc"
            app:title="@string/androidacy_test_mode_pref" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/baseline_monetization_on_24"
            app:key="pref_androidacy_repo_donate"
            app:singleLineTitle="false"
            app:summary="@string/upgrade_androidacy_promo_desc"
            app:title="@string/upgrade_androidacy_promo" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_language_24"
            app:key="pref_androidacy_repo_website"
            app:singleLineTitle="false"
            app:title="@string/website" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_telegram_24"
            app:key="pref_androidacy_repo_support"
            app:singleLineTitle="false"
            app:title="@string/support" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_upload_file_24"
            app:key="pref_androidacy_repo_submit"
            app:singleLineTitle="false"
            app:title="@string/submit_modules" />
        <!-- <Preference
            app:key="pref_show_captcha_webview"
            app:icon="@drawable/ic_baseline_vpn_key_24"
            app:title="@string/show_captcha"
            app:singleLineTitle="false" /> -->
        <Preference
            app:enabled="false"
            app:icon="@drawable/ic_baseline_info_24"
            app:key="pref_androidacy_ads_disclaimer"
            app:singleLineTitle="false"
            app:summary="@string/androidacy_repo_info" />
    </PreferenceCategory>
    <PreferenceCategory
        app:key="pref_magisk_alt_repo"
        app:title="@string/magisk_alt_repo_name">
        <SwitchPreferenceCompat
            app:icon="@drawable/ic_baseline_extension_24"
            app:key="pref_magisk_alt_repo_enabled"
            app:singleLineTitle="false"
            app:switchTextOff="@string/repo_disabled"
            app:switchTextOn="@string/repo_enabled" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_language_24"
            app:key="pref_magisk_alt_repo_website"
            app:singleLineTitle="false"
            app:title="@string/website" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_support_24"
            app:key="pref_magisk_alt_repo_support"
            app:singleLineTitle="false"
            app:title="@string/support" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_monetization_on_24"
            app:key="pref_magisk_alt_repo_donate"
            app:singleLineTitle="false"
            app:title="@string/donate" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_upload_file_24"
            app:key="pref_magisk_alt_repo_submit"
            app:singleLineTitle="false"
            app:title="@string/submit_modules" />
        <Preference
            app:enabled="false"
            app:icon="@drawable/ic_baseline_info_24"
            app:key="pref_alt_repo_disclaimer"
            app:singleLineTitle="false"
            app:summary="@string/alt_repo_info" />
    </PreferenceCategory>
    <PreferenceCategory
        app:key="pref_custom_repo_0"
        app:isPreferenceVisible="false"
        app:title="@string/loading">
        <!-- Custom repos can't be enabled/disabled. Instead, they must be deleted. Show a disabled
             switch to indicate that. -->
        <SwitchPreferenceCompat
            app:defaultValue="true"
            app:enabled="false"
            app:icon="@drawable/ic_baseline_extension_24"
            app:key="pref_custom_repo_0_enabled"
            app:singleLineTitle="false"
            app:switchTextOff="@string/repo_disabled"
            app:switchTextOn="@string/custom_repo_always_on" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_language_24"
            app:key="pref_custom_repo_0_website"
            app:singleLineTitle="false"
            app:title="@string/website" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_support_24"
            app:key="pref_custom_repo_0_support"
            app:singleLineTitle="false"
            app:title="@string/support" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_monetization_on_24"
            app:key="pref_custom_repo_0_donate"
            app:singleLineTitle="false"
            app:title="@string/donate" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_upload_file_24"
            app:key="pref_custom_repo_0_submit"
            app:singleLineTitle="false"
            app:title="@string/submit_modules" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_delete_forever_24"
            app:key="pref_custom_repo_0_delete"
            app:singleLineTitle="false"
            app:title="@string/remove_repo" />
    </PreferenceCategory>
    <PreferenceCategory
        app:key="pref_custom_repo_1"
        app:isPreferenceVisible="false"
        app:title="@string/loading">
        <SwitchPreferenceCompat
            app:defaultValue="true"
            app:enabled="false"
            app:icon="@drawable/ic_baseline_extension_24"
            app:key="pref_custom_repo_1_enabled"
            app:singleLineTitle="false"
            app:switchTextOff="@string/repo_disabled"
            app:switchTextOn="@string/custom_repo_always_on" />/>
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_language_24"
            app:key="pref_custom_repo_1_website"
            app:singleLineTitle="false"
            app:title="@string/website" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_support_24"
            app:key="pref_custom_repo_1_support"
            app:singleLineTitle="false"
            app:title="@string/support" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_monetization_on_24"
            app:key="pref_custom_repo_1_donate"
            app:singleLineTitle="false"
            app:title="@string/donate" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_upload_file_24"
            app:key="pref_custom_repo_1_submit"
            app:singleLineTitle="false"
            app:title="@string/submit_modules" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_delete_forever_24"
            app:key="pref_custom_repo_1_delete"
            app:singleLineTitle="false"
            app:title="@string/remove_repo" />
    </PreferenceCategory>
    <PreferenceCategory
        app:key="pref_custom_repo_2"
        app:isPreferenceVisible="false"
        app:title="@string/loading">
        <SwitchPreferenceCompat
            app:defaultValue="true"
            app:enabled="false"
            app:icon="@drawable/ic_baseline_extension_24"
            app:key="pref_custom_repo_2_enabled"
            app:singleLineTitle="false"
            app:switchTextOff="@string/repo_disabled"
            app:switchTextOn="@string/custom_repo_always_on" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_language_24"
            app:key="pref_custom_repo_2_website"
            app:singleLineTitle="false"
            app:title="@string/website" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_support_24"
            app:key="pref_custom_repo_2_support"
            app:singleLineTitle="false"
            app:title="@string/support" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_monetization_on_24"
            app:key="pref_custom_repo_2_donate"
            app:singleLineTitle="false"
            app:title="@string/donate" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_upload_file_24"
            app:key="pref_custom_repo_2_submit"
            app:singleLineTitle="false"
            app:title="@string/submit_modules" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_delete_forever_24"
            app:key="pref_custom_repo_2_delete"
            app:singleLineTitle="false"
            app:title="@string/remove_repo" />
    </PreferenceCategory>
    <PreferenceCategory
        app:key="pref_custom_repo_3"
        app:isPreferenceVisible="false"
        app:title="@string/loading">
        <SwitchPreferenceCompat
            app:defaultValue="true"
            app:enabled="false"
            app:icon="@drawable/ic_baseline_extension_24"
            app:key="pref_custom_repo_3_enabled"
            app:singleLineTitle="false"
            app:switchTextOff="@string/repo_disabled"
            app:switchTextOn="@string/custom_repo_always_on" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_language_24"
            app:key="pref_custom_repo_3_website"
            app:singleLineTitle="false"
            app:title="@string/website" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_support_24"
            app:key="pref_custom_repo_3_support"
            app:singleLineTitle="false"
            app:title="@string/support" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_monetization_on_24"
            app:key="pref_custom_repo_3_donate"
            app:singleLineTitle="false"
            app:title="@string/donate" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_upload_file_24"
            app:key="pref_custom_repo_3_submit"
            app:singleLineTitle="false"
            app:title="@string/submit_modules" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_delete_forever_24"
            app:key="pref_custom_repo_3_delete"
            app:singleLineTitle="false"
            app:title="@string/remove_repo" />
    </PreferenceCategory>
    <PreferenceCategory
        app:key="pref_custom_repo_4"
        app:isPreferenceVisible="false"
        app:title="@string/loading">
        <SwitchPreferenceCompat
            app:defaultValue="true"
            app:enabled="false"
            app:icon="@drawable/ic_baseline_extension_24"
            app:key="pref_custom_repo_4_enabled"
            app:singleLineTitle="false"
            app:switchTextOff="@string/repo_disabled"
            app:switchTextOn="@string/custom_repo_always_on" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_language_24"
            app:key="pref_custom_repo_4_website"
            app:singleLineTitle="false"
            app:title="@string/website" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_support_24"
            app:key="pref_custom_repo_4_support"
            app:singleLineTitle="false"
            app:title="@string/support" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_monetization_on_24"
            app:key="pref_custom_repo_4_donate"
            app:singleLineTitle="false"
            app:title="@string/donate" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_upload_file_24"
            app:key="pref_custom_repo_4_submit"
            app:singleLineTitle="false"
            app:title="@string/submit_modules" />
        <com.fox2code.mmm.settings.LongClickablePreference
            app:icon="@drawable/ic_baseline_delete_forever_24"
            app:key="pref_custom_repo_4_delete"
            app:singleLineTitle="false"
            app:title="@string/remove_repo" />
    </PreferenceCategory>
    <PreferenceCategory
        app:key="pref_custom_add_repo"
        app:title="@string/add_repo">
        <Preference
            app:icon="@drawable/ic_baseline_add_box_24"
            app:key="pref_custom_add_repo_button"
            app:singleLineTitle="false"
            app:title="@string/add_repo" />
    </PreferenceCategory>
</PreferenceScreen>
