Fix mangadex logout crash

This commit is contained in:
Jobobby04 2021-12-12 14:57:08 -05:00
parent 6e8ee38238
commit 04451ab14e

View File

@ -38,8 +38,8 @@ class MangadexLogoutDialog(bundle: Bundle? = null) : DialogController(bundle) {
if (source.logout()) {
withUIContext {
activity?.toast(R.string.logout_success)
(targetController as? Listener)?.siteLogoutDialogClosed(source)
}
(targetController as? Listener)?.siteLogoutDialogClosed(source)
} else {
withUIContext {
activity?.toast(R.string.unknown_error)