fix klint

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-05-03 12:46:42 +02:00
parent 8e981f04b0
commit d6a4e54957
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -193,7 +193,9 @@ class WebViewLoginController(args: Bundle? = null) : NewBaseController(
}
if (!TextUtils.isEmpty(username)) {
if (loginStep == 1) {
binding.webview.loadUrl("javascript: {document.getElementsByClassName('login')[0].click(); };")
binding.webview.loadUrl(
"javascript: {document.getElementsByClassName('login')[0].click(); };"
)
} else if (!automatedLoginAttempted) {
automatedLoginAttempted = true
if (TextUtils.isEmpty(password)) {