Last active
February 18, 2020 20:54
-
-
Save PatrykAndroid/e1cb4a15908481a42f9321fca96362a3 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
override fun getItemCount(): Int { | |
if (items.size <= 1) { | |
return items.size | |
} | |
val period = Int.MAX_VALUE / 2 / items.size | |
return period * items.size * 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment