Keep loading after success
This commit is contained in:
parent
e609f4a57e
commit
782635ec8e
@ -49,6 +49,9 @@ data class LoginViewState(
|
|||||||
|| asyncResetPassword is Loading
|
|| asyncResetPassword is Loading
|
||||||
|| asyncResetMailConfirmed is Loading
|
|| asyncResetMailConfirmed is Loading
|
||||||
|| asyncRegistration 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 {
|
fun isUserLogged(): Boolean {
|
||||||
|
@ -16,10 +16,7 @@
|
|||||||
|
|
||||||
package im.vector.riotx.features.signout
|
package im.vector.riotx.features.signout
|
||||||
|
|
||||||
import com.airbnb.mvrx.Async
|
import com.airbnb.mvrx.*
|
||||||
import com.airbnb.mvrx.Loading
|
|
||||||
import com.airbnb.mvrx.MvRxState
|
|
||||||
import com.airbnb.mvrx.Uninitialized
|
|
||||||
import im.vector.riotx.features.login.LoginMode
|
import im.vector.riotx.features.login.LoginMode
|
||||||
|
|
||||||
data class SoftLogoutViewState(
|
data class SoftLogoutViewState(
|
||||||
@ -35,5 +32,7 @@ data class SoftLogoutViewState(
|
|||||||
|
|
||||||
fun isLoading(): Boolean {
|
fun isLoading(): Boolean {
|
||||||
return asyncLoginAction is Loading
|
return asyncLoginAction is Loading
|
||||||
|
// Keep loading when it is success because of the delay to switch to the next Activity
|
||||||
|
|| asyncLoginAction is Success
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user