reformat kotlin

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-03-16 18:13:42 +01:00
parent 766d07d3fa
commit bafa1559db
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -203,9 +203,8 @@ class ProfileController : NewBaseController(R.layout.controller_profile) {
binding.avatarChoose.setOnClickListener { showBrowserScreen(BrowserType.DAV_BROWSER) } binding.avatarChoose.setOnClickListener { showBrowserScreen(BrowserType.DAV_BROWSER) }
binding.avatarDelete.setOnClickListener { binding.avatarDelete.setOnClickListener {
ncApi.deleteAvatar( ncApi.deleteAvatar(
credentials, ApiUtils.getUrlForTempAvatar( credentials,
currentUser!!.baseUrl ApiUtils.getUrlForTempAvatar(currentUser!!.baseUrl)
)
) )
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
@ -285,13 +284,13 @@ class ProfileController : NewBaseController(R.layout.controller_profile) {
adapter!!.setData(createUserInfoDetails(userInfo)) adapter!!.setData(createUserInfoDetails(userInfo))
if (isAllEmpty( if (isAllEmpty(
arrayOf( arrayOf(
userInfo!!.displayName, userInfo!!.displayName,
userInfo!!.phone, userInfo!!.phone,
userInfo!!.email, userInfo!!.email,
userInfo!!.address, userInfo!!.address,
userInfo!!.twitter, userInfo!!.twitter,
userInfo!!.website userInfo!!.website
) )
) )
) { ) {
binding.userinfoList.visibility = View.GONE binding.userinfoList.visibility = View.GONE
@ -439,7 +438,8 @@ class ProfileController : NewBaseController(R.layout.controller_profile) {
override fun onError(e: Throwable) { override fun onError(e: Throwable) {
item.text = userInfo!!.getValueByField(item.field) item.text = userInfo!!.getValueByField(item.field)
Toast.makeText( Toast.makeText(
applicationContext, String.format( applicationContext,
String.format(
resources!!.getString(R.string.failed_to_save), resources!!.getString(R.string.failed_to_save),
item.field item.field
), ),