Skip to content

Invalid remove dots on adapter data refresh #93

Closed
@dybuk87

Description

@dybuk87

Hi,

I found a bug when you have for example list with 5 elements and then you change item count to for example two and trigger notifyDataSetChange()

When this is triggered I have 3 dots but it does remove the first two dots. This causes an issue that I end up with one active dot (first one active when I am no last image, and all not active for other image)

This line cause bug

When I change it to this:
linearLayout!!.removeViewAt(linearLayout!!.childCount - 1)

It works ok, so I think this is a valid fix for that issue

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions