mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-19 10:45:13 +01:00
Add temporary workarounds until conductor is removed
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
1246223859
commit
9c9259b730
@ -1293,16 +1293,17 @@ class ConversationsListActivity :
|
|||||||
Log.d(TAG, "No other users found. AccountRemovalWorker will restart the app.")
|
Log.d(TAG, "No other users found. AccountRemovalWorker will restart the app.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.setNegativeButton(R.string.nc_settings_reauthorize) { _, _ ->
|
|
||||||
// TODO
|
// TODO: show negative button again when conductor is removed
|
||||||
// router.pushController(
|
// .setNegativeButton(R.string.nc_settings_reauthorize) { _, _ ->
|
||||||
// RouterTransaction.with(
|
// // router.pushController(
|
||||||
// WebViewLoginController(currentUser!!.baseUrl, true)
|
// // RouterTransaction.with(
|
||||||
// )
|
// // WebViewLoginController(currentUser!!.baseUrl, true)
|
||||||
// .pushChangeHandler(VerticalChangeHandler())
|
// // )
|
||||||
// .popChangeHandler(VerticalChangeHandler())
|
// // .pushChangeHandler(VerticalChangeHandler())
|
||||||
// )
|
// // .popChangeHandler(VerticalChangeHandler())
|
||||||
}
|
// // )
|
||||||
|
// }
|
||||||
|
|
||||||
viewThemeUtils.dialog.colorMaterialAlertDialogBackground(it.context, dialogBuilder)
|
viewThemeUtils.dialog.colorMaterialAlertDialogBackground(it.context, dialogBuilder)
|
||||||
val dialog = dialogBuilder.show()
|
val dialog = dialogBuilder.show()
|
||||||
@ -1335,8 +1336,10 @@ class ConversationsListActivity :
|
|||||||
}
|
}
|
||||||
.setNegativeButton(R.string.nc_cancel) { _, _ ->
|
.setNegativeButton(R.string.nc_cancel) { _, _ ->
|
||||||
if (userManager.users.blockingGet().isNotEmpty()) {
|
if (userManager.users.blockingGet().isNotEmpty()) {
|
||||||
// TODO
|
// TODO show SwitchAccount screen again when conductor is removed instead to close app
|
||||||
// router.pushController(RouterTransaction.with(SwitchAccountController()))
|
// router.pushController(RouterTransaction.with(SwitchAccountController()))
|
||||||
|
finishAffinity()
|
||||||
|
finish()
|
||||||
} else {
|
} else {
|
||||||
finishAffinity()
|
finishAffinity()
|
||||||
finish()
|
finish()
|
||||||
|
Loading…
Reference in New Issue
Block a user