mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 15:03:37 +00:00
Fix condition race in deleting element and insert new one
This commit is contained in:
@@ -271,8 +271,6 @@ public class SyncFragment extends Fragment {
|
||||
* Sincronizzazzione dell'album con gli artisti che hanno collaborato per la sua produzione | isProduced = false
|
||||
*/
|
||||
private void syncAlbumArtistCross(ArrayList<Album> albums) {
|
||||
albumArtistRepository.deleteAll();
|
||||
|
||||
List<AlbumArtistCross> crosses = new ArrayList<>();
|
||||
|
||||
for(Album album: albums) {
|
||||
@@ -298,8 +296,6 @@ public class SyncFragment extends Fragment {
|
||||
}
|
||||
|
||||
private void syncSongArtistCross(ArrayList<Song> songs) {
|
||||
songArtistRepository.deleteAll();
|
||||
|
||||
List<SongArtistCross> crosses = new ArrayList<>();
|
||||
|
||||
for(Song song: songs) {
|
||||
|
||||
Reference in New Issue
Block a user