Fixed Download Notification when multiple files are downloaded

This commit is contained in:
Adeel Zafar 2019-02-19 19:34:16 +05:00 committed by Isaac Hutt
parent 66aed896b3
commit cfe6258618

View File

@ -380,9 +380,10 @@ public class DownloadService extends Service {
}
}
target.putExtra(EXTRA_NOTIFICATION_ID, notificationID);
target.setAction(Long.toString(System.currentTimeMillis()));
PendingIntent pendingIntent = PendingIntent.getActivity
(getBaseContext(), 0,
target, PendingIntent.FLAG_CANCEL_CURRENT);
target, PendingIntent.FLAG_ONE_SHOT);
book.downloaded = true;
dataSource.deleteBook(book)
.subscribe(new CompletableObserver() {