mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
reformat kotlin
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
7b64fbd7e0
commit
b745e0677b
@ -110,8 +110,10 @@ class ServerSelectionController : NewBaseController(R.layout.controller_server_s
|
|||||||
) {
|
) {
|
||||||
binding.helperTextView.visibility = View.INVISIBLE
|
binding.helperTextView.visibility = View.INVISIBLE
|
||||||
} else {
|
} else {
|
||||||
if ((TextUtils.isEmpty(resources!!.getString(R.string.nc_import_account_type)) ||
|
if (
|
||||||
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
|
userUtils.users.size == 0
|
||||||
) {
|
) {
|
||||||
binding.helperTextView.setText(R.string.nc_get_from_provider)
|
binding.helperTextView.setText(R.string.nc_get_from_provider)
|
||||||
@ -126,28 +128,21 @@ class ServerSelectionController : NewBaseController(R.layout.controller_server_s
|
|||||||
}
|
}
|
||||||
} else if (findAccounts(userUtils.users as List<UserEntity>).size > 0) {
|
} else if (findAccounts(userUtils.users as List<UserEntity>).size > 0) {
|
||||||
if (!TextUtils.isEmpty(
|
if (!TextUtils.isEmpty(
|
||||||
getAppNameBasedOnPackage(
|
getAppNameBasedOnPackage(resources!!.getString(R.string.nc_import_accounts_from))
|
||||||
resources!!
|
|
||||||
.getString(R.string.nc_import_accounts_from)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
if (findAccounts(userUtils.users as List<UserEntity>).size > 1) {
|
if (findAccounts(userUtils.users as List<UserEntity>).size > 1) {
|
||||||
binding.helperTextView.setText(
|
binding.helperTextView.setText(
|
||||||
String.format(
|
String.format(
|
||||||
resources!!.getString(R.string.nc_server_import_accounts), getAppNameBasedOnPackage(
|
resources!!.getString(R.string.nc_server_import_accounts),
|
||||||
resources!!
|
getAppNameBasedOnPackage(resources!!.getString(R.string.nc_import_accounts_from))
|
||||||
.getString(R.string.nc_import_accounts_from)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
binding.helperTextView.setText(
|
binding.helperTextView.setText(
|
||||||
String.format(
|
String.format(
|
||||||
resources!!.getString(R.string.nc_server_import_account), getAppNameBasedOnPackage(
|
resources!!.getString(R.string.nc_server_import_account),
|
||||||
resources!!
|
getAppNameBasedOnPackage(resources!!.getString(R.string.nc_import_accounts_from))
|
||||||
.getString(R.string.nc_import_accounts_from)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user