mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Added visible notification after succesful downloads
After succesful download, notification will stay in notification bar. I used "VISIBILITY_VISIBLE_NOTIFY_COMPLETED" key.
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jacek Musiał
					Jacek Musiał