mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 21:15:30 +03:00
Fix crash when switching accounts
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
f97b8c1cdb
commit
245505bb71
1 changed files with 8 additions and 1 deletions
|
@ -111,7 +111,14 @@ public class SwitchAccountController extends BaseController {
|
|||
public void onNext(UserEntity userEntity) {
|
||||
cookieManager.getCookieStore().removeAll();
|
||||
userUtils.disableAllUsersWithoutId(userEntity.getId());
|
||||
getRouter().popCurrentController();
|
||||
if (getActivity() != null) {
|
||||
getActivity().runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
getRouter().popCurrentController();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue