Skip to content

Instantly share code, notes, and snippets.

@zsoltk
Last active September 10, 2022 19:08
Show Gist options
  • Save zsoltk/7621581d3ca38ec5a97eec7c38e2ad49 to your computer and use it in GitHub Desktop.
Save zsoltk/7621581d3ca38ec5a97eec7c38e2ad49 to your computer and use it in GitHub Desktop.
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