Skip to content

Commit all the playlist changes to db immediately#13005

Merged
TobiGr merged 1 commit intoTeamNewPipe:devfrom
dustdfg:db_immediate
Jan 5, 2026
Merged

Commit all the playlist changes to db immediately#13005
TobiGr merged 1 commit intoTeamNewPipe:devfrom
dustdfg:db_immediate

Conversation

@dustdfg
Copy link
Contributor

@dustdfg dustdfg commented Jan 5, 2026

What is it?

  • Bugfix (user facing)
  • Codebase improvement (dev facing)

Description of the changes in your PR

  • Commit all the playlist changes to db immediately
  • + some additional minor code cleanup in the file

Fixes the following issue(s)

Relies on the following changes

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

+ some additional minor code cleanup in the file
@github-actions github-actions bot added the size/small PRs with less than 50 changed lines label Jan 5, 2026
@TobiGr TobiGr added database Issue and PRs related to database operations playlist Anything to do with playlists in the app labels Jan 5, 2026
@TobiGr TobiGr merged commit 25ea75f into TeamNewPipe:dev Jan 5, 2026
6 checks passed
@TobiGr TobiGr added this to Rewrite Jan 5, 2026
@github-project-automation github-project-automation bot moved this from In Progress to Done in Rewrite Jan 5, 2026
@github-project-automation github-project-automation bot moved this to In Progress in Rewrite Jan 5, 2026
@TobiGr TobiGr removed this from Rewrite Jan 5, 2026
@TobiGr TobiGr added this to v0.28.x Jan 5, 2026
@github-project-automation github-project-automation bot moved this to Todo in v0.28.x Jan 5, 2026
@github-project-automation github-project-automation bot moved this from Todo to Done in v0.28.x Jan 5, 2026
@TobiGr TobiGr moved this from Done to In Progress in v0.28.x Jan 5, 2026
@dustdfg dustdfg deleted the db_immediate branch January 6, 2026 00:44
@TobiGr TobiGr mentioned this pull request Jan 7, 2026
4 tasks
@TobiGr TobiGr moved this from In Progress to Done in v0.28.x Jan 7, 2026
Comment on lines 768 to 772
final boolean isSwapped = itemListAdapter.swapItems(sourceIndex, targetIndex);
if (isSwapped) {
debounceSaver.setHasChangesToSave();
saveImmediate();
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Causes #13040 but without it you can observe reordering if swap items in playlist before deleting duplicates...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database Issue and PRs related to database operations playlist Anything to do with playlists in the app size/small PRs with less than 50 changed lines

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

"Remove watched" with "Remove duplicates" without closing and re-opening the playlist does not work correctly

2 participants