mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-09 22:04:24 +01:00
reformat kotlin
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
766d07d3fa
commit
bafa1559db
@ -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
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user