From c8ad6cdf31a14bce9a525cfc2a0616e8ac51d7c3 Mon Sep 17 00:00:00 2001 From: NGB-Was-Taken <76197326+NGB-Was-Taken@users.noreply.github.com> Date: Sat, 7 Sep 2024 14:00:22 +0545 Subject: [PATCH] Show toast for app restart when User-Agent is changed (#1204) --- .../presentation/more/settings/screen/SettingsAdvancedScreen.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsAdvancedScreen.kt b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsAdvancedScreen.kt index b3a999559..8cf062ee9 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsAdvancedScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsAdvancedScreen.kt @@ -264,6 +264,7 @@ object SettingsAdvancedScreen : SearchableSettings { try { // OkHttp checks for valid values internally Headers.Builder().add("User-Agent", it) + context.toast(MR.strings.requires_app_restart) } catch (_: IllegalArgumentException) { context.toast(MR.strings.error_user_agent_string_invalid) return@EditTextPreference false