Commit 3a7f940f by Rohit Singh

Merge pull request #10776 from dongvanhung:feature/add_support_clear_download_manager_helpers

PiperOrigin-RevId: 491336828
parents 043546a0 0d2e4377
...@@ -573,6 +573,17 @@ public abstract class DownloadService extends Service { ...@@ -573,6 +573,17 @@ public abstract class DownloadService extends Service {
Util.startForegroundService(context, intent); Util.startForegroundService(context, intent);
} }
/**
* Clear all {@linkplain DownloadManagerHelper download manager helpers} before restarting the
* service.
*
* <p>Calling this method is normally only required if an app supports downloading content for
* multiple users for which different download directories should be used.
*/
public static void clearDownloadManagerHelpers() {
downloadManagerHelpers.clear();
}
@Override @Override
public void onCreate() { public void onCreate() {
if (channelId != null) { if (channelId != null) {
......
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