Skip to content

Fix rendering after deleting playlist items - #912

Open
vrih wants to merge 1 commit into
daneren2005:edgefrom
vrih:fix/remove-from-entry-grid-adapter
Open

Fix rendering after deleting playlist items#912
vrih wants to merge 1 commit into
daneren2005:edgefrom
vrih:fix/remove-from-entry-grid-adapter

Conversation

@vrih

@vrih vrih commented Nov 18, 2018

Copy link
Copy Markdown
Contributor

Fixes #910

The existing method of removing elements from playlist has 2 issues:

  1. The removal by index ID from the storage list creates index mismatches.
  2. The UI is not updated correctly and mismatches even further.

This patch users an iterator to correctly keep the data storage state correct and takes advantage of the data binding to the RecyclerView to only update the UI once and directly from the data, instead of pushing remove by index.

@vrih
vrih force-pushed the fix/remove-from-entry-grid-adapter branch from 410c0dc to b537828 Compare December 9, 2018 11:54
gravelld added a commit to Astiga/Astiga-Android that referenced this pull request Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant