Merge pull request #127 from 912d/download-directory

Added visible notification after succesful download
pull/131/head
Christian Schabesberger 2015-12-25 21:27:45 +01:00
commit 870b0bf7aa
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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) {