Always allow story error slate this->this transition.

This commit is contained in:
Alex Hart 2022-04-25 10:41:20 -03:00 committed by Cody Henthorne
parent da7e4cefd5
commit d23faf4278

View file

@ -162,6 +162,10 @@ class StorySlateView @JvmOverloads constructor(
return true
}
if (newState == this) {
return true
}
return when (this) {
LOADING -> newState == ERROR
ERROR -> newState == RETRY