mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-24 14:09:44 +01:00
Fix crash when switching accounts
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
f97b8c1cdb
commit
245505bb71
@ -111,7 +111,14 @@ public class SwitchAccountController extends BaseController {
|
|||||||
public void onNext(UserEntity userEntity) {
|
public void onNext(UserEntity userEntity) {
|
||||||
cookieManager.getCookieStore().removeAll();
|
cookieManager.getCookieStore().removeAll();
|
||||||
userUtils.disableAllUsersWithoutId(userEntity.getId());
|
userUtils.disableAllUsersWithoutId(userEntity.getId());
|
||||||
getRouter().popCurrentController();
|
if (getActivity() != null) {
|
||||||
|
getActivity().runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
getRouter().popCurrentController();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user