Keep loading after success

This commit is contained in:
Benoit Marty 2019-12-12 23:20:11 +01:00
parent e609f4a57e
commit 782635ec8e
2 changed files with 6 additions and 4 deletions

View File

@ -49,6 +49,9 @@ data class LoginViewState(
|| asyncResetPassword is Loading
|| asyncResetMailConfirmed is Loading
|| asyncRegistration is Loading
// Keep loading when it is success because of the delay to switch to the next Activity
|| asyncLoginAction is Success
}
fun isUserLogged(): Boolean {

View File

@ -16,10 +16,7 @@
package im.vector.riotx.features.signout
import com.airbnb.mvrx.Async
import com.airbnb.mvrx.Loading
import com.airbnb.mvrx.MvRxState
import com.airbnb.mvrx.Uninitialized
import com.airbnb.mvrx.*
import im.vector.riotx.features.login.LoginMode
data class SoftLogoutViewState(
@ -35,5 +32,7 @@ data class SoftLogoutViewState(
fun isLoading(): Boolean {
return asyncLoginAction is Loading
// Keep loading when it is success because of the delay to switch to the next Activity
|| asyncLoginAction is Success
}
}