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:
parent
b1b9fd6026
commit
c2ea4ecce5
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user