瀏覽代碼

reformat kotlin

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 3 年之前
父節點
當前提交
b745e0677b
共有 1 個文件被更改,包括 9 次插入14 次删除
  1. 9 14
      app/src/main/java/com/nextcloud/talk/controllers/ServerSelectionController.kt

+ 9 - 14
app/src/main/java/com/nextcloud/talk/controllers/ServerSelectionController.kt

@@ -110,8 +110,10 @@ 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()) &&
+            if (
+                (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)
@@ -126,28 +128,21 @@ class ServerSelectionController : NewBaseController(R.layout.controller_server_s
                 }
             } else if (findAccounts(userUtils.users as List<UserEntity>).size > 0) {
                 if (!TextUtils.isEmpty(
-                        getAppNameBasedOnPackage(
-                            resources!!
-                                .getString(R.string.nc_import_accounts_from)
-                        )
+                        getAppNameBasedOnPackage(resources!!.getString(R.string.nc_import_accounts_from))
                     )
                 ) {
                     if (findAccounts(userUtils.users as List<UserEntity>).size > 1) {
                         binding.helperTextView.setText(
                             String.format(
-                                resources!!.getString(R.string.nc_server_import_accounts), getAppNameBasedOnPackage(
-                                    resources!!
-                                        .getString(R.string.nc_import_accounts_from)
-                                )
+                                resources!!.getString(R.string.nc_server_import_accounts),
+                                getAppNameBasedOnPackage(resources!!.getString(R.string.nc_import_accounts_from))
                             )
                         )
                     } else {
                         binding.helperTextView.setText(
                             String.format(
-                                resources!!.getString(R.string.nc_server_import_account), getAppNameBasedOnPackage(
-                                    resources!!
-                                        .getString(R.string.nc_import_accounts_from)
-                                )
+                                resources!!.getString(R.string.nc_server_import_account),
+                                getAppNameBasedOnPackage(resources!!.getString(R.string.nc_import_accounts_from))
                             )
                         )
                     }