Created
August 5, 2021 06:56
-
-
Save sergei-lapin/4d1eabbd69b636c7b5c506d245543047 to your computer and use it in GitHub Desktop.
putRecycledView
This file contains hidden or 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 putRecycledView(scrap: RecyclerView.ViewHolder) { | |
| val viewType = scrap.itemViewType | |
| val maxRecycledViews = recycledViewsBounds.getOrPut(viewType) { defaultMaxRecycledViews } | |
| setMaxRecycledViews(viewType, maxRecycledViews) | |
| super.putRecycledView(scrap) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment