mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 23:07:26 -04:00
Fixed Download Notification when multiple files are downloaded
This commit is contained in:
parent
66aed896b3
commit
cfe6258618
@ -380,9 +380,10 @@ public class DownloadService extends Service {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
target.putExtra(EXTRA_NOTIFICATION_ID, notificationID);
|
target.putExtra(EXTRA_NOTIFICATION_ID, notificationID);
|
||||||
|
target.setAction(Long.toString(System.currentTimeMillis()));
|
||||||
PendingIntent pendingIntent = PendingIntent.getActivity
|
PendingIntent pendingIntent = PendingIntent.getActivity
|
||||||
(getBaseContext(), 0,
|
(getBaseContext(), 0,
|
||||||
target, PendingIntent.FLAG_CANCEL_CURRENT);
|
target, PendingIntent.FLAG_ONE_SHOT);
|
||||||
book.downloaded = true;
|
book.downloaded = true;
|
||||||
dataSource.deleteBook(book)
|
dataSource.deleteBook(book)
|
||||||
.subscribe(new CompletableObserver() {
|
.subscribe(new CompletableObserver() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user