mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Trim newlines from user agent (#7858)
* trim newlines from user agent * fix indents * fix indents for real * actually fix indents
This commit is contained in:
		| @@ -231,11 +231,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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user