rubensousa / DpadRecyclerView

A RecyclerView built for Android TV with Compose in mind and as a replacement for Leanback's BaseGridView.
https://rubensousa.github.io/DpadRecyclerView/
Apache License 2.0
136 stars 17 forks source link

Always trigger layout instead of trying to skip it based on item changes #240

Closed rubensousa closed 4 months ago

rubensousa commented 4 months ago

Changes:

  1. Layout pass is not skipped if adapter changes are out of bounds because it might still affect the entire layout structure
  2. Manual selection requests are cancelled when new layout passes are triggered
  3. Always focus the selected view on each layout to prevent alignment issues
  4. onFocusChanged now triggers focus on the next available frame, to prevent #241