From ec7d2f58f6760ef8e5afe7bb6d22a9410d374de2 Mon Sep 17 00:00:00 2001 From: Mario Danic Date: Fri, 12 Jan 2018 15:30:00 +0100 Subject: [PATCH] Fix settings Signed-off-by: Mario Danic --- .../talk/controllers/SettingsController.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/SettingsController.java b/app/src/main/java/com/nextcloud/talk/controllers/SettingsController.java index 3221d6206..cff596896 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/SettingsController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/SettingsController.java @@ -228,9 +228,7 @@ public class SettingsController extends BaseController { getParentController().getRouter().pushController(RouterTransaction.with(new SwitchAccountController()).pushChangeHandler(new VerticalChangeHandler()) .popChangeHandler(new VerticalChangeHandler())); - }); - } @Override @@ -296,10 +294,10 @@ public class SettingsController extends BaseController { if ((!TextUtils.isEmpty(displayName) && !displayName.equals(userEntity.getDisplayName())) || needsToUpdateUserId) { - dbQueryDisposable = userUtils.createOrUpdateUser(userEntity.getUsername(), - userEntity.getToken(), - userEntity.getBaseUrl(), displayName, null, true, - userProfileOverall.getOcs().getData().getUserId()) + dbQueryDisposable = userUtils.createOrUpdateUser(null, + null, + null, displayName, null, true, + userProfileOverall.getOcs().getData().getUserId(), userEntity.getId()) .subscribeOn(Schedulers.newThread()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(userEntityResult -> { @@ -344,7 +342,6 @@ public class SettingsController extends BaseController { } }); - }