Last active
September 10, 2022 19:08
-
-
Save zsoltk/7621581d3ca38ec5a97eec7c38e2ad49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal object CardsOnScreenResolver : OnScreenStateResolver<State> { | |
override fun isOnScreen(state: State): Boolean = | |
when (state) { | |
is State.Bottom, | |
is State.Top -> true | |
is State.Queued, | |
is State.VoteLike, | |
is State.VotePass -> false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment