Added a method in DownloadService to support for Clear all DownloadManagerHelper to restart the new service.

This commit is contained in:
Dong Van Hung 2022-11-14 09:34:27 +09:00
parent acfea39235
commit 0d2e4377ef

View file

@ -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;