recyclerView.getChildAdapterPosition() is annotated as nonNull
I was trying to use the Core package but in PagerSnapHelperVerbose the fun findSnapView uses a recyclerView.getChildAdapterPosition(view) and in androidX namepsace/packages the view is annotated as NonNull and this causes some problems. However when i checked out this repository in the support libraries the same fun is not annotated as NonNull. Do you have any insight on how to fix this issue ?
have the same issue.
Hi, i had also face the same issue, just use below code override fun findSnapView(layoutManager: RecyclerView.LayoutManager?): View? { val view = super.findSnapView(layoutManager) if(view !=null){ notifyNewPageIfNeeded(recyclerView.getChildAdapterPosition(view!!))} return view }