Commit 0d2e4377 by Dong Van Hung

Added a method in DownloadService to support for Clear all DownloadManagerHelper…

Added a method in DownloadService to support for Clear all DownloadManagerHelper to restart the new service.
parent acfea392
...@@ -869,6 +869,14 @@ public abstract class DownloadService extends Service { ...@@ -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 class ForegroundNotificationUpdater {
private final int notificationId; private final int notificationId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment