Fix klint errors

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2022-02-21 17:17:47 +01:00
parent d2add97bca
commit 964367189f
No known key found for this signature in database
GPG Key ID: FECE3A7222C52A4E

View File

@ -111,15 +111,17 @@ class ServerSelectionController : NewBaseController(R.layout.controller_server_s
binding.helperTextView.visibility = View.INVISIBLE
} else {
if (
(TextUtils.isEmpty(resources!!.getString(R.string.nc_import_account_type)) ||
findAccounts(userUtils.users as List<UserEntity>).isEmpty()
(
TextUtils.isEmpty(resources!!.getString(R.string.nc_import_account_type)) ||
findAccounts(userUtils.users as List<UserEntity>).isEmpty()
) &&
userUtils.users.size == 0
) {
binding.helperTextView.setText(R.string.nc_get_from_provider)
binding.helperTextView.setOnClickListener {
val browserIntent = Intent(
Intent.ACTION_VIEW, Uri.parse(
Intent.ACTION_VIEW,
Uri.parse(
resources!!
.getString(R.string.nc_providers_url)
)