mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-10 11:08:56 +01:00
Fix Kitsu toasting "Logged in" when there is an error (#4329)
This commit is contained in:
@@ -48,6 +48,7 @@ class TrackLoginDialog(
|
||||
dialog?.dismiss()
|
||||
withUIContext { view?.context?.toast(R.string.login_success) }
|
||||
} catch (e: Throwable) {
|
||||
service.logout()
|
||||
binding?.login?.progress = -1
|
||||
binding?.login?.setText(R.string.unknown_error)
|
||||
withUIContext { e.message?.let { view?.context?.toast(it) } }
|
||||
|
||||
Reference in New Issue
Block a user