optimize multiple track deletion

After #480 got implemented, we can now delete multiple tracks in one go and only cause DB vacuum once.
This commit is contained in:
Peter Storch
2020-10-31 23:09:46 +01:00
committed by Dennis Guse
parent e4270b983a
commit 43e0f33776
3 changed files with 14 additions and 10 deletions
@@ -519,9 +519,7 @@ abstract class AbstractFileTrackImporter extends DefaultHandler implements Track
* Cleans up import.
*/
private void cleanImport() {
for (Track.Id trackId : trackIds) {
contentProviderUtils.deleteTrack(context, trackId);
}
contentProviderUtils.deleteTracks(context, trackIds);
}
/**