Created
January 14, 2021 21:07
-
-
Save afrishberg/cf23d5779852784f4b27dfa083238845 to your computer and use it in GitHub Desktop.
flip rotation
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
private fun flipRotation(adapter: Adapter) { | |
val newList = adapter.data.mapIndexed { i, data -> | |
if (i == 0) data.copy(rotated = data.rotated.not()) else data | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment