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.avatarDelete.setOnClickListener {
ncApi.deleteAvatar(
credentials, ApiUtils.getUrlForTempAvatar(
currentUser!!.baseUrl
)
credentials,
ApiUtils.getUrlForTempAvatar(currentUser!!.baseUrl)
)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
@ -439,7 +438,8 @@ class ProfileController : NewBaseController(R.layout.controller_profile) {
override fun onError(e: Throwable) {
item.text = userInfo!!.getValueByField(item.field)
Toast.makeText(
applicationContext, String.format(
applicationContext,
String.format(
resources!!.getString(R.string.failed_to_save),
item.field
),