MilindGoel15

Litho bug explanation for refresh gesture and workarounds

Aug 8th, 2021 (edited)
10,760
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. Swipe down gesture for refreshing home feed breaks randomly.
  2.  
  3. It's a known issue as it's a litho bug explained below.
  4. >Litho has its own implementation of RecyclerView (it's used as a parent group for multiple listings inside it since it can recycle view layout and consume less memory) and Swipe-to-refresh layout. For whatever reason, when the height of the first item in RecyclerView is set to 0, Swipe-to-refresh breaks. This can be fixed if the first element is set to the height of 1 instead of 0. I've created a sample repo that contains everything needed to reproduce the bug: https://github.com/X1nto/LithoRecyclerSample
  5. And
  6. https://github.com/X1nto/LithoRecyclerSample/blob/master/app/src/main/java/com/xinto/srltest/CardGroupSpec.java here everything is commented out
  7.  
  8. **Workarounds to fix it:**
  9.  
  10. 1. If comments are disabled, enable them back again.
  11. 2. Tap on any suggestions/filters on top of the home tab and pull down to refresh will start to work
  12. 3. Try force stopping app and try again.
  13. 4. Disable General ad removal
  14. 5. Downgrade back to v15.40.
  15.  
  16. Please wait patiently until it gets resolved by Google. Nothing can be done on vanced's end.
Comments
Add Comment
Please, Sign In to add comment