Changed the order of deletion and saving of items at the time of synchronization

This commit is contained in:
CappielloAntonio committed 2021-05-02 12:20:43 +02:00
1 parent 01785b7bed
commit 86fcc8b479
13 files changed
+138 -51

No files matched your search

@@ -17,9 +17,6 @@ public interface PlaylistSongCrossDao {
@Query("SELECT * FROM playlist_song_cross")
LiveData<List<PlaylistSongCross>> getAll();
@Query("SELECT EXISTS(SELECT * FROM playlist_song_cross WHERE id = :id)")
boolean exist(String id);
@Insert(onConflict = OnConflictStrategy.REPLACE)
void insert(PlaylistSongCross playlistSongCross);