Note that toggling NSFW sources requires a restart

This commit is contained in:
arkon 2020-12-12 17:26:29 -05:00
parent 5b09461ccf
commit bbc00768f0
38 changed files with 39 additions and 37 deletions

View file

@ -122,7 +122,7 @@ class SettingsAdvancedController : SettingsController() {
switchPreference {
key = Keys.enableDoh
titleRes = R.string.pref_dns_over_https
summaryRes = R.string.pref_dns_over_https_summary
summaryRes = R.string.requires_app_restart
defaultValue = false
}
}

View file

@ -8,6 +8,7 @@ import eu.kanade.tachiyomi.util.preference.defaultValue
import eu.kanade.tachiyomi.util.preference.infoPreference
import eu.kanade.tachiyomi.util.preference.onChange
import eu.kanade.tachiyomi.util.preference.preferenceCategory
import eu.kanade.tachiyomi.util.preference.summaryRes
import eu.kanade.tachiyomi.util.preference.switchPreference
import eu.kanade.tachiyomi.util.preference.titleRes
import kotlinx.coroutines.flow.launchIn
@ -50,6 +51,7 @@ class SettingsBrowseController : SettingsController() {
switchPreference {
key = Keys.showNsfwSource
titleRes = R.string.pref_show_nsfw_source
summaryRes = R.string.requires_app_restart
defaultValue = true
}
switchPreference {

View file

@ -601,7 +601,7 @@
<string name="action_start">ابدأ</string>
<string name="action_sort_date_added">تاريخ الاضافة</string>
<string name="whats_new">ما الجديد</string>
<string name="pref_dns_over_https_summary">يتطلب إعادة تشغيل التطبيق ليتم تفعيله</string>
<string name="requires_app_restart">يتطلب إعادة تشغيل التطبيق ليتم تفعيله</string>
<string name="label_network">شبكة الاتصال</string>
<string name="backup_restore_missing_trackers">أجهزة التتبع التي لم يتم تسجيل الدخول إليها:</string>
<string name="pref_remove_bookmarked_chapters">حذف الفصول ذات العلامة المرجعية</string>

View file

@ -375,7 +375,7 @@
<string name="pref_clear_chapter_cache">Borrar caché de los capítulos</string>
<string name="label_data">Datos</string>
<string name="cookies_cleared">Cookies borradas</string>
<string name="pref_dns_over_https_summary">Requiere el reinicio de la aplicación para que surta efecto</string>
<string name="requires_app_restart">Requiere el reinicio de la aplicación para que surta efecto</string>
<string name="battery_optimization_disabled">La optimización de la batería ya está desactivada</string>
<string name="pref_disable_battery_optimization_summary">Ayuda con las actualizaciones y las copias de seguridad de biblioteca en segundo plano</string>
<string name="pref_disable_battery_optimization">Desactivar optimización de batería</string>

View file

@ -581,7 +581,7 @@
<string name="tabs_header">Раздели</string>
<string name="badges_header">Значки</string>
<string name="label_data">Данни</string>
<string name="pref_dns_over_https_summary">Изисква рестартиране на приложението, за да влезе в сила</string>
<string name="requires_app_restart">Изисква рестартиране на приложението, за да влезе в сила</string>
<string name="label_network">Мрежа</string>
<string name="backup_restore_missing_sources">Липсващи източници:</string>
<string name="invalid_backup_file_missing_manga">Резервното копие не съдържа манга.</string>

View file

@ -464,7 +464,7 @@
<string name="set_chapter_settings_as_default">প্রকৃত হিসেবে সংরক্ষণ করুন</string>
<string name="confirm_set_chapter_settings">আপনি কি নিশ্চিত সেটিংসগুলো প্রকৃত হিসেবে সংরক্ষণ করবেন\?</string>
<string name="label_data">তথ্য</string>
<string name="pref_dns_over_https_summary">কার্যকর করতে অ্যাপ পুনরারম্ভ করতে হবে</string>
<string name="requires_app_restart">কার্যকর করতে অ্যাপ পুনরারম্ভ করতে হবে</string>
<string name="label_network">নেটওয়ার্ক</string>
<string name="restoring_backup_canceled">পুনরুদ্ধার বাতিল করা হয়েছে</string>
<string name="restoring_backup_error">ব্যাকআপ পুনরুদ্ধার ব্যর্থ হয়েছে</string>

View file

@ -573,7 +573,7 @@
<string name="action_global_search_query">Cerca \"%1$s\" globalment</string>
<string name="updated_version">S\'ha actualitzat a la v%1$s</string>
<string name="whats_new">Novetats</string>
<string name="pref_dns_over_https_summary">Cal reiniciar l\'aplicació perquè s\'apliqui</string>
<string name="requires_app_restart">Cal reiniciar l\'aplicació perquè s\'apliqui</string>
<string name="label_network">Xarxa</string>
<string name="pref_category_reading_mode">Mode de lectura</string>
<string name="pref_show_reading_mode_summary">Mostra breument el mode actual en obrir el lector</string>

View file

@ -558,7 +558,7 @@
<string name="cache_deleted">Кеша тастнӑ. %1$d файла катертнӗ</string>
<string name="pref_clear_chapter_cache">Сыпӑксен кешне тасат</string>
<string name="label_data">Пӗлӗмсем</string>
<string name="pref_dns_over_https_summary">Вӑя кӗрес тесен хушӑма сӳнтерсе ҫутмалла</string>
<string name="requires_app_restart">Вӑя кӗрес тесен хушӑма сӳнтерсе ҫутмалла</string>
<string name="restoring_backup_canceled">Тавӑрнине пӑрахӑҫланӑ</string>
<string name="restoring_backup_error">Янтӑв тавӑрни йӑнӑшӗ</string>
<string name="restoring_backup">Янтӑв тавӑрни</string>

View file

@ -568,7 +568,7 @@
<item quantity="other">%1$s Kapitel</item>
</plurals>
<string name="action_open_in_settings">In den Einstellungen öffnen</string>
<string name="pref_dns_over_https_summary">App muss neu gestartet werden, um die Einstellung zu übernehmen</string>
<string name="requires_app_restart">App muss neu gestartet werden, um die Einstellung zu übernehmen</string>
<string name="pref_dns_over_https" translatable="false">DNS über HTTPS (Cloudflare)</string>
<string name="label_network">Netzwerk</string>
<string name="pref_jump_to_chapters">Beim Öffnen zu den Kapiteln springen</string>

View file

@ -568,7 +568,7 @@
<item quantity="other">%1$s κεφάλαια</item>
</plurals>
<string name="action_open_in_settings">Άνοιγμα στις Ρυθμίσεις</string>
<string name="pref_dns_over_https_summary">Απαιτείται επανεκκίνηση της εφαρμογής για να τεθεί σε ισχύ</string>
<string name="requires_app_restart">Απαιτείται επανεκκίνηση της εφαρμογής για να τεθεί σε ισχύ</string>
<string name="pref_dns_over_https" translatable="false">DNS μέσω HTTPS (Cloudflare)</string>
<string name="label_network">Δίκτυο</string>
<string name="pref_jump_to_chapters">Μετάβαση στα κεφάλαια κατά το άνοιγμα</string>

View file

@ -599,7 +599,7 @@
<string name="action_sort_descending">Descendente</string>
<string name="action_disable">Desactivar</string>
<string name="action_open_in_settings">Abrir en Configuración</string>
<string name="pref_dns_over_https_summary">Requiere el reinicio de la aplicación para que surta efecto</string>
<string name="requires_app_restart">Requiere el reinicio de la aplicación para que surta efecto</string>
<string name="pref_dns_over_https" translatable="false">DNS sobre HTTPS (Cloudflare)</string>
<string name="label_network">Red</string>
<string name="pref_jump_to_chapters">Saltar a los capítulos abiertos</string>

View file

@ -581,7 +581,7 @@
<string name="no_pinned_sources">شما هیچ منبع پین‌شده‌ای ندارید</string>
<string name="action_global_search_query">«%1$s» در همه منابع جستجو شود</string>
<string name="whats_new">اخبار</string>
<string name="pref_dns_over_https_summary">برای اعمال تغییرات برنامه نیاز به راه اندازی مجدد دارد</string>
<string name="requires_app_restart">برای اعمال تغییرات برنامه نیاز به راه اندازی مجدد دارد</string>
<string name="label_network">شبکه</string>
<string name="backup_restore_missing_trackers">ردیابی‌هایی که به سیستم وارد نشده اند:</string>
<string name="pref_category_reading_mode">حالت خواندن</string>

View file

@ -568,7 +568,7 @@
<item quantity="other">%1$s lukua</item>
</plurals>
<string name="action_open_in_settings">Avaa Asetuksissa</string>
<string name="pref_dns_over_https_summary">Edellyttää sovelluksen käynnistämistä uudelleen</string>
<string name="requires_app_restart">Edellyttää sovelluksen käynnistämistä uudelleen</string>
<string name="pref_dns_over_https" translatable="false">DNS HTTPS:n kautta (Cloudflare)</string>
<string name="label_network">Verkko</string>
<string name="pref_jump_to_chapters">Siirry lukuihin avatessa</string>

View file

@ -568,7 +568,7 @@
<string name="pref_clear_chapter_cache">Linisin ang cache ng kabanata</string>
<string name="label_data">Data</string>
<string name="cookies_cleared">Nalinis na ang mga cookie</string>
<string name="pref_dns_over_https_summary">Nangangailangang buksan muli ang app para gumana</string>
<string name="requires_app_restart">Nangangailangang buksan muli ang app para gumana</string>
<string name="pref_clear_cookies">Linisin ang mga cookie</string>
<string name="label_network">Network</string>
<string name="restoring_backup_error">Pumalya sa pagbalik sa backup</string>

View file

@ -602,7 +602,7 @@
<string name="action_sort_descending">Décroissant</string>
<string name="action_disable">Désactiver</string>
<string name="action_open_in_settings">Ouvrir dans les paramètres</string>
<string name="pref_dns_over_https_summary">Nécessite un redémarrage de l\'application pour prendre effet</string>
<string name="requires_app_restart">Nécessite un redémarrage de l\'application pour prendre effet</string>
<string name="pref_dns_over_https" translatable="false">DNS sur HTTPS (Cloudflare)</string>
<string name="label_network">Réseau</string>
<string name="tapping_inverted_both">Les deux</string>

View file

@ -578,7 +578,7 @@
<string name="pref_read_with_tapping_inverted">उलटा दोहन</string>
<string name="unknown_status">अज्ञात स्थिति</string>
<string name="unknown_author">अज्ञात लेखक</string>
<string name="pref_dns_over_https_summary">प्रभावी होने के लिए ऐप पुनः आरंभ करने की आवश्यकता है</string>
<string name="requires_app_restart">प्रभावी होने के लिए ऐप पुनः आरंभ करने की आवश्यकता है</string>
<string name="action_download_unread">अपठित अध्याय डाउनलोड करें</string>
<string name="whats_new">नया क्या है</string>
<string name="download_insufficient_space">कम डिस्क स्पेस के कारण अध्याय डाउनलोड नहीं कर सका</string>

View file

@ -578,7 +578,7 @@
<item quantity="few">%1$s poglavlja</item>
<item quantity="other">%1$s poglavlja</item>
</plurals>
<string name="pref_dns_over_https_summary">Za preuzimanje postavke, ponovo pokreni program</string>
<string name="requires_app_restart">Za preuzimanje postavke, ponovo pokreni program</string>
<string name="pref_dns_over_https" translatable="false">DNS preko HTTPS-a (Cloudflare)</string>
<string name="label_network">Mreža</string>
<string name="tapping_inverted_both">Oboje</string>

View file

@ -555,7 +555,7 @@
<plurals name="manga_num_chapters">
<item quantity="other">%1$s bab</item>
</plurals>
<string name="pref_dns_over_https_summary">Mulai ulang aplikasi untuk menerapkan pengaturan</string>
<string name="requires_app_restart">Mulai ulang aplikasi untuk menerapkan pengaturan</string>
<string name="pref_dns_over_https" translatable="false">DNS melalui HTTPS (Cloudflare)</string>
<string name="label_network">Jaringan</string>
<string name="pref_jump_to_chapters">Lompat ke bab saat dibuka</string>

View file

@ -604,7 +604,7 @@
<string name="unknown_author">Autore sconosciuto</string>
<string name="updated_version">Aggiornato verso v%1$s</string>
<string name="whats_new">Le novità</string>
<string name="pref_dns_over_https_summary">Richiede il riavvio dell\'applicazione per avere effetto</string>
<string name="requires_app_restart">Richiede il riavvio dell\'applicazione per avere effetto</string>
<string name="pref_dns_over_https" translatable="false">DNS via HTTPS (Cloudflare)</string>
<string name="label_network">Rete</string>
<string name="pref_show_reading_mode_summary">Mostra brevemente la modalità corrente all\'apertura del lettore</string>

View file

@ -564,7 +564,7 @@
<string name="tapping_inverted_none">なし</string>
<string name="unknown_status">不明なステータス</string>
<string name="unknown_author">作者不明</string>
<string name="pref_dns_over_https_summary">変更を適用するためには再起動してください</string>
<string name="requires_app_restart">変更を適用するためには再起動してください</string>
<string name="label_network">ネットワーク</string>
<string name="pref_jump_to_chapters">起動時にチャプターを表示</string>
<string name="pref_read_with_tapping_inverted">タップでのページめくりを反転</string>

View file

@ -563,7 +563,7 @@
</plurals>
<string name="updated_version">განახლებულია v%1$s-მდე</string>
<string name="whats_new">რა არის ახალი</string>
<string name="pref_dns_over_https_summary">ასამოქმედებლად საჭიროა აპლიკაციის გადატვირთვა</string>
<string name="requires_app_restart">ასამოქმედებლად საჭიროა აპლიკაციის გადატვირთვა</string>
<string name="label_network">ქსელი</string>
<plurals name="restore_completed_message">
<item quantity="one">გაკეთებულია %1$s %2$s შეცდომით</item>

View file

@ -578,7 +578,7 @@
<string name="action_global_search_query">\"%1$s\" ಅನ್ನು ಗ್ಲೋಬಲ್ ಸರ್ಚ್ ಮಾಡಿ</string>
<string name="updated_version">v%1$s ಗೆ ಅಪ್ಡೇಟ್ ಆಗಿದೆ</string>
<string name="whats_new">ಹೊಸತೇನಿದೆ</string>
<string name="pref_dns_over_https_summary">ಜಾರಿಗೆ ಬರಲು ಅಪ್ಲಿಕೇಶನ್ ಮರುಪ್ರಾರಂಭದ ಅಗತ್ಯವಿದೆ</string>
<string name="requires_app_restart">ಜಾರಿಗೆ ಬರಲು ಅಪ್ಲಿಕೇಶನ್ ಮರುಪ್ರಾರಂಭದ ಅಗತ್ಯವಿದೆ</string>
<string name="label_network">ಅಡ್ವಾನ್ಸ್ಡ್ ಸೆಕ್ಷನ್</string>
<string name="pref_category_reading_mode">ಓದುವ ಮೊಡ್</string>
<string name="pref_jump_to_chapters">ಓಪನ್ ಮಾಡಿದ ಮೇಲೆ ಅಧ್ಯಯಕ್ಕೆ ಹೋಗಿ</string>

View file

@ -558,7 +558,7 @@
</plurals>
<string name="action_sort_descending">Menurun</string>
<string name="action_disable">Matikan</string>
<string name="pref_dns_over_https_summary">Mula semula diperlukan untuk berkesan</string>
<string name="requires_app_restart">Mula semula diperlukan untuk berkesan</string>
<string name="pref_dns_over_https" translatable="false">DNS melalui HTTPS (Cloudflare)</string>
<string name="label_network">Rangkaian</string>
<string name="pref_jump_to_chapters">Terus ke bab bila buka</string>

View file

@ -523,7 +523,7 @@
<string name="battery_optimization_disabled">Batterioptimalisering er allerede deaktivert</string>
<string name="pref_disable_battery_optimization">Deaktiver batterioptimalisering</string>
<string name="label_data">Data</string>
<string name="pref_dns_over_https_summary">Krever omstart for å tre i kraft</string>
<string name="requires_app_restart">Krever omstart for å tre i kraft</string>
<string name="label_network">Nettverk</string>
<string name="restoring_backup_canceled">Avbrutt gjenoppretting</string>
<string name="restore_in_progress">Gjenoppretting er allerede i gang</string>

View file

@ -568,7 +568,7 @@
</plurals>
<string name="action_sort_descending">Aflopend</string>
<string name="action_open_in_settings">In Instellingen openen</string>
<string name="pref_dns_over_https_summary">Herstart van de app nodig om van kracht te worden</string>
<string name="requires_app_restart">Herstart van de app nodig om van kracht te worden</string>
<string name="pref_dns_over_https" translatable="false">DNS over HTTPS (Cloudflare)</string>
<string name="label_network">Netwerk</string>
<string name="pref_jump_to_chapters">Ga naar de hoofdstukken bij openen</string>

View file

@ -581,7 +581,7 @@
<string name="action_disable">Wyłącz</string>
<string name="action_open_in_settings">Otwórz w ustawieniach</string>
<string name="action_start">Start</string>
<string name="pref_dns_over_https_summary">Wymaga ponownego uruchomienia aplikacji</string>
<string name="requires_app_restart">Wymaga ponownego uruchomienia aplikacji</string>
<string name="pref_dns_over_https" translatable="false">DNS przez HTTPS (Cloudflare)</string>
<string name="label_network">Sieć</string>
<string name="pref_jump_to_chapters">Przeskocz do rozdziałów przy otwarciu</string>

View file

@ -568,7 +568,7 @@
<item quantity="other">%1$s capítulos</item>
</plurals>
<string name="action_open_in_settings">Abrir nas Configurações</string>
<string name="pref_dns_over_https_summary">Requer o reinício do aplicativo para ter efeito</string>
<string name="requires_app_restart">Requer o reinício do aplicativo para ter efeito</string>
<string name="pref_dns_over_https" translatable="false">DNS sob HTTPS (Cloudflare)</string>
<string name="label_network">Rede</string>
<string name="pref_jump_to_chapters">Pular para os capítulos ao abrir</string>

View file

@ -606,7 +606,7 @@
</plurals>
<string name="unknown_status">Estado desconhecido</string>
<string name="unknown_author">Autor desconhecido</string>
<string name="pref_dns_over_https_summary">Requer reinício da app para ter efeito</string>
<string name="requires_app_restart">Requer reinício da app para ter efeito</string>
<string name="label_network">Rede</string>
<string name="pref_dns_over_https" translatable="false">DNS por HTTPS (Cloudflare)</string>
<string name="updated_version">Atualizado para v%1$s</string>

View file

@ -575,7 +575,7 @@
<item quantity="few">%1$s capitole</item>
<item quantity="other">%1$s de capitole</item>
</plurals>
<string name="pref_dns_over_https_summary">Necesită restartarea aplicației pentru a avea efect</string>
<string name="requires_app_restart">Necesită restartarea aplicației pentru a avea efect</string>
<string name="pref_dns_over_https" translatable="false">DNS prin HTTPS (Cloudflare)</string>
<string name="action_sort_descending">Descrescător</string>
<string name="action_disable">Dezactivați</string>

View file

@ -586,7 +586,7 @@
<item quantity="other">%1$s глав</item>
</plurals>
<string name="action_sort_descending">По убыванию</string>
<string name="pref_dns_over_https_summary">Требуется перезапуск приложения для вступления в силу</string>
<string name="requires_app_restart">Требуется перезапуск приложения для вступления в силу</string>
<string name="pref_dns_over_https" translatable="false">DNS по HTTPS (Cloudflare)</string>
<string name="label_network">Сеть</string>
<string name="pref_jump_to_chapters">Переходить к главам при запуске</string>

View file

@ -345,7 +345,7 @@
<string name="pref_remove_after_marked_as_read">Ааҕыллыбыт диэн суруллубутун кэннэ</string>
<string name="pref_download_only_over_wifi">Wi-Fi эрэ баар буоллаҕына хачайдаа</string>
<string name="pref_download_directory">Хачайдааһын сурунаала</string>
<string name="pref_dns_over_https_summary">Уларыйыы киирэрин гына эбилиги хос холбоо</string>
<string name="requires_app_restart">Уларыйыы киирэрин гына эбилиги хос холбоо</string>
<string name="cache_delete_error">Кээс сотторуутугар сыыһааһын буолла</string>
<string name="cache_deleted">Кээс ыраастанна. %1$d билэ сотторуллубут этэ</string>
<string name="used_cache">Туттуллубут: %1$s</string>

View file

@ -568,7 +568,7 @@
<item quantity="one">1 capìtulu</item>
<item quantity="other">%1$s capìtulos</item>
</plurals>
<string name="pref_dns_over_https_summary">Tenet bisòngiu chi torres a allùghere s\'aplicatzione pro tènnere efetu</string>
<string name="requires_app_restart">Tenet bisòngiu chi torres a allùghere s\'aplicatzione pro tènnere efetu</string>
<string name="pref_dns_over_https" translatable="false">DNS pro mèdiu de HTTPS (Cloudflare)</string>
<string name="label_network">Retza</string>
<string name="pref_jump_to_chapters">Brinca a sos capìtulos a s\'abertura</string>

View file

@ -572,7 +572,7 @@
</plurals>
<string name="unknown_status">Okänd status</string>
<string name="unknown_author">Okänd författare</string>
<string name="pref_dns_over_https_summary">Kräver omstart av appen för att börja gälla</string>
<string name="requires_app_restart">Kräver omstart av appen för att börja gälla</string>
<string name="pref_dns_over_https" translatable="false">DNS över HTTPS (Cloudflare)</string>
<string name="label_network">Nätverk</string>
<string name="pref_jump_to_chapters">Hoppa till kapitel vid öppning</string>

View file

@ -568,7 +568,7 @@
<item quantity="other">%1$s bölüm</item>
</plurals>
<string name="action_open_in_settings">Ayarlarda aç</string>
<string name="pref_dns_over_https_summary">Etkili olması için uygulama yeniden başlatılmalıdır</string>
<string name="requires_app_restart">Etkili olması için uygulama yeniden başlatılmalıdır</string>
<string name="pref_dns_over_https" translatable="false">HTTPS ile DNS (Cloudflare)</string>
<string name="label_network"></string>
<string name="pref_jump_to_chapters">ınca bölümlere git</string>

View file

@ -591,7 +591,7 @@
<string name="pref_read_with_tapping_inverted">Інвертувати тицяння</string>
<string name="unknown_status">Невідомий статус</string>
<string name="unknown_author">Невідомий автор</string>
<string name="pref_dns_over_https_summary">Потрібен перезапуск, щоб зміни вступили в дію</string>
<string name="requires_app_restart">Потрібен перезапуск, щоб зміни вступили в дію</string>
<string name="pref_dns_over_https" translatable="false">DNS понад HTTPS (Cloudflare)</string>
<string name="label_network">Мережа</string>
<string name="pref_jump_to_chapters">Перейти до глав при відкритті</string>

View file

@ -558,7 +558,7 @@
<item quantity="other">%1$s 个章节</item>
</plurals>
<string name="action_open_in_settings">在设置中打开</string>
<string name="pref_dns_over_https_summary">需要重启应用才能生效</string>
<string name="requires_app_restart">需要重启应用才能生效</string>
<string name="pref_dns_over_https" translatable="false">DNS over HTTPS (Cloudflare)</string>
<string name="label_network">网络</string>
<string name="pref_jump_to_chapters">打开时跳转到阅读章节</string>

View file

@ -525,7 +525,7 @@
<plurals name="num_categories">
<item quantity="other">%d 個分類</item>
</plurals>
<string name="pref_dns_over_https_summary">需要重新啟動應用程式以套用</string>
<string name="requires_app_restart">需要重新啟動應用程式以套用</string>
<string name="pref_dns_over_https" translatable="false">DNS over HTTPS (Cloudflare)</string>
<string name="label_network">網路</string>
<string name="tapping_inverted_both">全部</string>

View file

@ -389,7 +389,7 @@
<string name="label_network">Network</string>
<string name="pref_clear_cookies">Clear cookies</string>
<string name="pref_dns_over_https" translatable="false">DNS over HTTPS (Cloudflare)</string>
<string name="pref_dns_over_https_summary">Requires app restart to take effect</string>
<string name="requires_app_restart">Requires app restart to take effect</string>
<string name="cookies_cleared">Cookies cleared</string>
<string name="label_data">Data</string>
<string name="pref_clear_chapter_cache">Clear chapter cache</string>