From afd0bd43183e869728dde70c73b25a5ef21d407e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20Musia=C5=82?= Date: Fri, 25 Dec 2015 19:28:09 +0100 Subject: [PATCH] Added visible notification after succesful downloads After succesful download, notification will stay in notification bar. I used "VISIBILITY_VISIBLE_NOTIFY_COMPLETED" key. --- app/src/main/java/org/schabi/newpipe/DownloadDialog.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/schabi/newpipe/DownloadDialog.java b/app/src/main/java/org/schabi/newpipe/DownloadDialog.java index fe4ea7b4b..903251e58 100644 --- a/app/src/main/java/org/schabi/newpipe/DownloadDialog.java +++ b/app/src/main/java/org/schabi/newpipe/DownloadDialog.java @@ -90,6 +90,7 @@ public class DownloadDialog extends DialogFragment { request.setDestinationUri(Uri.fromFile(new File( defaultPreferences.getString("download_path_preference", "/storage/emulated/0/NewPipe") + "/" + title + suffix))); + request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED); try { dm.enqueue(request); } catch (Exception e) {