You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have not changed anything notable in the indicator, but essentially, there is a situation where dotCenterX is null. It's a bit hard to pinpoint the reason as most of the variables are initialized at different times.
A possible solution is to simply initialize everything, even if it means being an empty array. Maybe you'll have a better idea of what the actual cause is though.
The text was updated successfully, but these errors were encountered:
I'm also having this issue,..., and after a bit of debugging, it appears that in the failing case, onDraw is being called before onMeasure. onMeasure is where it sets up dotCenterX.
I find that this bug occurs when there is a chance in pager size. For example, the ViewPager was initially size 1, then it becomes size 5, and it fails to re-measure itself. This is very hard to reproduce. It doesn't happen all the time.
Relevant Crashlytics
Relevant Java Class
I have not changed anything notable in the indicator, but essentially, there is a situation where
dotCenterX
is null. It's a bit hard to pinpoint the reason as most of the variables are initialized at different times.A possible solution is to simply initialize everything, even if it means being an empty array. Maybe you'll have a better idea of what the actual cause is though.
The text was updated successfully, but these errors were encountered: