feat: always display the download button for tracks as users can now re-download the same track multiple times, either by relying on the original download endpoint or setting their preferred codec and bitrate

This commit is contained in:
antonio 2023-08-13 23:20:01 +02:00
parent 7c6faf66c1
commit 28565b691a

View file

@ -215,7 +215,6 @@ public class SongBottomSheetDialog extends BottomSheetDialogFragment implements
private void initDownloadUI(TextView download, TextView remove) { private void initDownloadUI(TextView download, TextView remove) {
if (DownloadUtil.getDownloadTracker(requireContext()).isDownloaded(song.getId())) { if (DownloadUtil.getDownloadTracker(requireContext()).isDownloaded(song.getId())) {
download.setVisibility(View.GONE);
remove.setVisibility(View.VISIBLE); remove.setVisibility(View.VISIBLE);
} else { } else {
download.setVisibility(View.VISIBLE); download.setVisibility(View.VISIBLE);