feat: added downloaded file title to notification

This commit is contained in:
antonio 2023-08-03 07:22:28 +02:00
parent 5c4a292542
commit fc61308be5
4 changed files with 52 additions and 3 deletions

View file

@ -108,6 +108,11 @@ public class DownloaderManager {
}
}
public static String getDownloadNotificationMessage(String id) {
com.cappielloantonio.tempo.model.Download download = getDownloadRepository().getDownload(id);
return download != null ? download.getTitle() : null;
}
private static DownloadRepository getDownloadRepository() {
return new DownloadRepository();
}