Skip to content

Commit

Permalink
Added a method in DownloadService to support for Clear all DownloadMa…
Browse files Browse the repository at this point in the history
…nagerHelper to restart the new service.
  • Loading branch information
dongvanhung committed Nov 14, 2022
1 parent acfea39 commit 0d2e437
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,14 @@ private static void startService(Context context, Intent intent, boolean foregro
}
}

/**
* Clear all DownloadManagerHelper to restart the new service.
*/
public static void clearDownloadManagerHelpers() {
downloadManagerHelpers.clear();
}


private final class ForegroundNotificationUpdater {

private final int notificationId;
Expand Down

0 comments on commit 0d2e437

Please sign in to comment.