Skip to content

Commit

Permalink
fix(android): prevent views from being recycled (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
krozniata authored Dec 3, 2024
1 parent f20eead commit 05fcee3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class ViewPagerAdapter() : Adapter<ViewPagerViewHolder>() {
override fun onBindViewHolder(holder: ViewPagerViewHolder, index: Int) {
val container: FrameLayout = holder.container
val child = getChildAt(index)
holder.setIsRecyclable(false)

if (container.childCount > 0) {
container.removeAllViews()
Expand Down

0 comments on commit 05fcee3

Please sign in to comment.