InstaDotView icon indicating copy to clipboard operation
InstaDotView copied to clipboard

when viewpage inside recycle, java.lang.IndexOutOfBoundsException

Open captain-miao opened this issue 6 years ago • 3 comments

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.get(ArrayList.java:437)
    at com.hrskrs.instadotlib.InstaDotView.setupNormalDots(InstaDotView.java:319)
    at com.hrskrs.instadotlib.InstaDotView.updateDots(InstaDotView.java:293)
    at com.hrskrs.instadotlib.InstaDotView.onPageChange(InstaDotView.java:284)

captain-miao avatar Oct 19 '18 09:10 captain-miao

I believe this is happening due to the previousPage var not being reset correctly. It's reset in onPageChange, but only after trying to use its previous value to index a list. This is currently causing a crash; is there any way you can get a fix out?

mformetal avatar Nov 14 '18 14:11 mformetal

yeah, dot size and dot view is not update in the same time.

I try to fixed it, but fail 😭.

captain-miao avatar Jan 06 '19 14:01 captain-miao

for those who are still facing the issue: fix is https://github.com/hrskrs/InstaDotView/pull/6

shrastiRisor avatar Feb 01 '22 11:02 shrastiRisor