Flickering RecyclerView issue with paging3 - while...
# android
b
Flickering RecyclerView issue with paging3 - while using with Room DB caching I am facing a weird flicker issue with paging3 only when the submodule is integrated to my main app (sub module is using paging3) The number of flickers are exactly equal to the number of initial pages I am fetching (Example : pageSize = 10, initialLoadSize = 100, then it flickers 10 times for 10 db insertions) If I disable the db insertions and rely only on the DB content, then there is no flickering Hypothesis : 1. Room DB is invalidating the query's PageSource used by the adapter and causing the redraw . But if that happens, the standalone app also must get the same issue. 2. Or there are different dependency versions in the main app which are not compatible and behaving weird. If that is the case, then inflating the child fragment which is using the paging3 inside the submodule directly in the main app must also get flickering. But it is working fine. Any help will be appreciated.. Looks confusing. But i tried to put the problem precise. Please go through and try to help Important Note: paging3 library is fetching 3 pages by default even when I am configuring the pageSize = 10 and initialLoadSize=10.. With this config, it is making 3 api calls without a single scroll of the RecyclerView. Preventing this also will solve my problem temporarily
😶 4