Fix inconsistency between user interaction and database commit order when re-adding videos to the playlist
This commit is contained in:
parent
b50e3c07d2
commit
1cf670dad9
2 changed files with 24 additions and 2 deletions
|
|
@ -158,6 +158,15 @@ public class LocalPlaylistFragment extends BaseLocalListFragment<List<PlaylistSt
|
|||
return headerBinding;
|
||||
}
|
||||
|
||||
// Commit changes immediately when the user turns to the player.
|
||||
// Delete operations will be committed to ensure that the database
|
||||
// is up to date when the user adds the just deleted stream by the player.
|
||||
public void commitChanges() {
|
||||
if (isModified != null && isModified.get()) {
|
||||
saveImmediate();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void initListeners() {
|
||||
super.initListeners();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue