1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-01-31 17:04:59 +01:00

Show toast when login failed

This commit is contained in:
Tlaster 2020-04-14 14:31:33 +08:00
parent b1b9fd6026
commit c2ea4ecce5

View File

@ -344,6 +344,9 @@ class SignInActivity : BaseActivity(), OnClickListener, TextWatcher,
}.failUi {
val activity = weakThis.get() ?: return@failUi
// TODO show error message
if (it is MicroBlogException) {
Toast.makeText(activity, it.message, Toast.LENGTH_SHORT).show()
}
}.alwaysUi {
executeAfterFragmentResumed {
it.supportFragmentManager.dismissDialogFragment("get_request_token")