This view pager is very hard to use while writing the PagerAdapter in Kotlin.
The third parameter of the destroyItem method has a @NonNull annotation. As Kotlin translates this to a non nullable parameter and checks this non nullability at runtime the app crashes when null is provided to this method.
Sadly the UltraViewPager uses this part of code:
This view pager is very hard to use while writing the PagerAdapter in Kotlin. The third parameter of the
destroyItem
method has a@NonNull
annotation. As Kotlin translates this to a non nullable parameter and checks this non nullability at runtime the app crashes when null is provided to this method. Sadly the UltraViewPager uses this part of code:If the
RelativeLayout
has no childrennull
is provided to thedestroyItem
method.