Option to disable captcha notification for specific source (#1253 #1300)

This commit is contained in:
Koitharu
2025-02-24 14:39:16 +02:00
parent c835ebff3f
commit 1fa470fd00
4 changed files with 21 additions and 2 deletions

View File

@@ -804,4 +804,6 @@
<string name="search_everywhere">Search everywhere</string>
<string name="simple">Simple</string>
<string name="global_search">Global search</string>
<string name="disable_captcha_notifications">Disable captcha notifications</string>
<string name="disable_captcha_notifications_summary">You will not receive notifications about solving CAPTCHA for this source but this can lead to breaking background operations (checking for new chapters, obtaining recommendations, etc)</string>
</resources>

View File

@@ -1,7 +1,8 @@
<?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">
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<SwitchPreferenceCompat
android:defaultValue="false"
@@ -11,6 +12,13 @@
android:persistent="false"
android:title="@string/enable_source" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="no_captcha"
android:order="104"
android:summary="@string/disable_captcha_notifications_summary"
android:title="@string/disable_captcha_notifications" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="slowdown"
@@ -25,6 +33,7 @@
android:persistent="false"
android:title="@string/open_in_browser"
app:allowDividerAbove="true"
app:isPreferenceVisible="false" />
app:isPreferenceVisible="false"
tools:isPreferenceVisible="true" />
</PreferenceScreen>