airbnb / epoxy

Epoxy is an Android library for building complex screens in a RecyclerView
https://goo.gl/eIK82p
Apache License 2.0
8.47k stars 731 forks source link

How to check when EpoxyRecyclerView's `epoxyController` is not a null ? #1255

Open ardmn opened 2 years ago

ardmn commented 2 years ago

In my case I use extended Carousel in ViewPager . Custom Carousel uses custom EpoxyController. When user switches between tabs of ViewPager an EpoxyRecyclerView's restore state and sets his SimpleController in setModels method - not my custom Controller. If I try override setModels I should know if epoxyController is already initialized or no because this method call multiple times while user change data. epoxyController - is private setController - is final

Can Epoxy add new api to check epoxyController on null ?