fixed progress icon for downloaders

This commit is contained in:
gdlbo
2024-03-12 15:30:17 +03:00
parent cff0a98227
commit 6bcc278dee
2 changed files with 4 additions and 1 deletions
@@ -92,7 +92,7 @@ public class VideoDownloader {
String notificationText = "Загрузка началась";
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(AndroidUtils.getGlobalContext(), channelId)
.setSmallIcon(R.drawable.ic_download_24)
.setSmallIcon(android.R.drawable.stat_sys_download)
.setContentTitle(notificationTitle)
.setContentText(notificationText)
.setProgress(0, 0, true)
@@ -151,6 +151,8 @@ public class VideoDownloader {
notificationBuilder.setContentText(successMessage)
.setProgress(0, 0, false)
.setContentTitle(notificationTitle)
.setSmallIcon(android.R.drawable.stat_sys_download_done)
.setOngoing(false);
notificationManager.notify(notificationId, notificationBuilder.build());
@@ -74,6 +74,7 @@ public class MusicCallbackBuilder {
public void onSuccess() {
notification.setContentText(AndroidUtils.getString(R.string.player_download_finished));
notification.setProgress(0, 0, false);
notification.setSmallIcon(android.R.drawable.stat_sys_download_done);
}
@Override