<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (c) 2023 to present Androidacy and contributors. Names, logos, icons, and the Androidacy name are all trademarks of Androidacy and may not be used without license. See LICENSE for more information.
  -->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools">
    <PreferenceCategory
        app:key="pref_androidacy_repo"
        app:title="@string/androidacy_repo_name">
        <SwitchPreferenceCompat
            android:widgetLayout="@layout/preference_material_switch"
            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
            android:maxLength="64"
            app:dependency="pref_androidacy_repo_enabled"
            app:icon="@drawable/ic_baseline_vpn_key_24"
            app:isPreferenceVisible="false"
            app:key="pref_androidacy_repo_api_token"
            app:singleLineTitle="false"
            app:title="@string/api_key" />
        <SwitchPreferenceCompat
            android:widgetLayout="@layout/preference_material_switch"
            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
            android:widgetLayout="@layout/preference_material_switch"
            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:isPreferenceVisible="false"
        app:key="pref_custom_repo_0"
        app:title="@string/loading">
        <!-- Custom repos can't be enabled/disabled. Instead, they must be deleted. Show a disabled
             switch to indicate that. -->
        <SwitchPreferenceCompat
            android:widgetLayout="@layout/preference_material_switch"
            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:isPreferenceVisible="false"
        app:key="pref_custom_repo_1"
        app:title="@string/loading">
        <SwitchPreferenceCompat
            android:widgetLayout="@layout/preference_material_switch"
            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:isPreferenceVisible="false"
        app:key="pref_custom_repo_2"
        app:title="@string/loading">
        <SwitchPreferenceCompat
            android:widgetLayout="@layout/preference_material_switch"
            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:isPreferenceVisible="false"
        app:key="pref_custom_repo_3"
        app:title="@string/loading">
        <SwitchPreferenceCompat
            android:widgetLayout="@layout/preference_material_switch"
            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:isPreferenceVisible="false"
        app:key="pref_custom_repo_4"
        app:title="@string/loading">
        <SwitchPreferenceCompat
            android:widgetLayout="@layout/preference_material_switch"
            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>
