Trim newlines from user agent (#7858)

* trim newlines from user agent

* fix indents

* fix indents for real

* actually fix indents

(cherry picked from commit aab5f083dbae25380b97c7407309beb90a64d845)
This commit is contained in:
Mubashir Haroon 2022-08-26 18:18:09 +05:00 committed by Jobobby04
parent 655c0d8c90
commit 5c4481a704

View File

@ -253,11 +253,11 @@ class SettingsAdvancedController(
onChange {
if (it.toString().isBlank()) {
activity?.toast(R.string.error_user_agent_string_blank)
false
} else {
text = it.toString().trim()
activity?.toast(R.string.requires_app_restart)
true
}
false
}
}
preference {