Fixed
Status Update
Comments
bo...@gmail.com <bo...@gmail.com> #2
Thanks for the thorough report - you're right about the problem, and the workaround looks good - it even handles the fast cases for initialization and setList(null) nicely.
Fix and tests submitted internally, should go out with next paging release.
Fix and tests submitted internally, should go out with next paging release.
bo...@gmail.com <bo...@gmail.com> #3
Actually, I'd like to know more about what failed here and why.
I'm curious if InstantTaskExecutorRule is putting paging into an unexpected state - do you have a sample project that reproduces the issue?
When hitting this outside of a test, are you specifying any custom executors, possibly ones which run main thread tasks immediately instead of posting them?
I'm curious if InstantTaskExecutorRule is putting paging into an unexpected state - do you have a sample project that reproduces the issue?
When hitting this outside of a test, are you specifying any custom executors, possibly ones which run main thread tasks immediately instead of posting them?
yb...@google.com <yb...@google.com>
se...@google.com <se...@google.com> #4
I don't have a sample project that hits this.
The problem does not happen very often outside of the test scripts, but we are not running any custom executors. The PagedListAdapter gets the data through a LivePagedListProvider from room db.
The problem does not happen very often outside of the test scripts, but we are not running any custom executors. The PagedListAdapter gets the data through a LivePagedListProvider from room db.
bo...@gmail.com <bo...@gmail.com> #5
This specific issue should be fixed with the Paging Alpha 4 that just released.
Filedhttps://issuetracker.google.com/issues/70351983 to track testing around InstantTaskExecutorRule.
Filed
bo...@gmail.com <bo...@gmail.com> #6
Indeed I can reproduce the issue with a simple project (see attachment) where the base class and the child class are in 2 modules. If the annotationProcessor is commented, it works as expected. If it's enabled, only the child class method is called.
se...@google.com <se...@google.com> #7
Thank you, now I can reproduce it, looks we doesn't correctly different modules in our annotation processor.
Description
Version used: 1.0.0-alpha3
Devices/Android versions reproduced on: N/A
I am trying to have a base class that has @OnLifecycleEvent annotated methods, and a child class that also has them. When I do that, only the base class methods get called.
Is this a known restriction? If yes, I couldn't find it documented anywhere.