mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
Added a method in DownloadService to support for Clear all DownloadManagerHelper to restart the new service.
This commit is contained in:
parent
acfea39235
commit
0d2e4377ef
1 changed files with 8 additions and 0 deletions
|
|
@ -869,6 +869,14 @@ public abstract class DownloadService extends Service {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear all DownloadManagerHelper to restart the new service.
|
||||
*/
|
||||
public static void clearDownloadManagerHelpers() {
|
||||
downloadManagerHelpers.clear();
|
||||
}
|
||||
|
||||
|
||||
private final class ForegroundNotificationUpdater {
|
||||
|
||||
private final int notificationId;
|
||||
|
|
|
|||
Loading…
Reference in a new issue