Merge pull request #1824 from nextcloud/bugix/noid/fix-ktlint-errors

Fix klint errors
This commit is contained in:
Andy Scherzinger 2022-02-21 18:31:18 +01:00 committed by GitHub
commit 3af4f368cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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