mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
fix: Fix performance issues with DownloadedBottomSheet with large number of grouped entries
This commit is contained in:
parent
f43d7fb394
commit
75e5756d7e
1 changed files with 2 additions and 2 deletions
|
|
@ -105,10 +105,10 @@ public class DownloadedBottomSheetDialog extends BottomSheetDialogFragment imple
|
||||||
});
|
});
|
||||||
|
|
||||||
TextView removeAll = view.findViewById(R.id.remove_all_text_view);
|
TextView removeAll = view.findViewById(R.id.remove_all_text_view);
|
||||||
List<MediaItem> mediaItems = MappingUtil.mapDownloads(songs);
|
|
||||||
List<Download> downloads = songs.stream().map(Download::new).collect(Collectors.toList());
|
|
||||||
|
|
||||||
removeAll.setOnClickListener(v -> {
|
removeAll.setOnClickListener(v -> {
|
||||||
|
List<MediaItem> mediaItems = MappingUtil.mapDownloads(songs);
|
||||||
|
List<Download> downloads = songs.stream().map(Download::new).collect(Collectors.toList());
|
||||||
DownloadUtil.getDownloadTracker(requireContext()).remove(mediaItems, downloads);
|
DownloadUtil.getDownloadTracker(requireContext()).remove(mediaItems, downloads);
|
||||||
dismissBottomSheet();
|
dismissBottomSheet();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue