Closed yoobi closed 2 years ago
Is the Fragment part of ViewPager ?
No, it's a simple Recyclerview with paging3
Please check that onViewDestroyed
isn't called before data observer callbacks
You need to unregister data observer in onViewDestroyed
too
It might be the issue indeed, I should unregister the callback in onViewDestroyed
. I'll change this in my app and close the issue in a few days if I do not get more report.
Thank you !
I've also had this problem with the fragment, but it's not necessary library version is: (noreflection:1.5.9),when I use below code private val binding by viewBinding(HomeAnswerBookFragmentBinding::bind)
@zhangjinhuang , it's important from where and when in Fragment's lifecycle you access delegate not how you create it
Hello, I'm using
'com.github.kirich1409:viewbindingpropertydelegate-noreflection:1.5.6'
And I get this exception for one of my page however I don't understand why.The stacktrace
Could it be possible that
myAdapter
keeps a reference of theregisterAdapterDataObserver
after being destroyed ?