mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Fix condition race in deleting element and insert new one
This commit is contained in:
parent
3addc3b561
commit
fc430e5811
3 changed files with 24 additions and 10 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue