Skip to content

Commit

Permalink
Show toast for app restart when User-Agent is changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
NGB-Was-Taken authored and AntsyLich committed Sep 7, 2024
1 parent c4f235a commit f169984
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f169984

Please sign in to comment.