mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Fix account removal if it’s the last account
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
b335d34e18
commit
b7dec6e4fa
@ -406,17 +406,10 @@ public class SettingsController extends BaseController {
|
||||
onViewBound(getView());
|
||||
onAttach(getView());
|
||||
} else if (!otherUserExists) {
|
||||
if (getParentController() == null || getParentController().getRouter() == null) {
|
||||
if (getActivity() != null) {
|
||||
// Something went very wrong, finish the app
|
||||
getActivity().finish();
|
||||
}
|
||||
} else {
|
||||
getParentController().getRouter().setRoot(RouterTransaction.with(
|
||||
new ServerSelectionController())
|
||||
.pushChangeHandler(new VerticalChangeHandler())
|
||||
.popChangeHandler(new VerticalChangeHandler()));
|
||||
}
|
||||
getRouter().setRoot(RouterTransaction.with(
|
||||
new ServerSelectionController())
|
||||
.pushChangeHandler(new VerticalChangeHandler())
|
||||
.popChangeHandler(new VerticalChangeHandler()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user