mirror of
https://github.com/androidx/media.git
synced 2025-05-16 03:59:54 +08:00
Stop requirements watcher when download manager is released
Unregister listeners and callbacks when download manager is released.
This commit is contained in:
parent
ab4d37f499
commit
4fc015feca
@ -531,6 +531,7 @@ public final class DownloadManager {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
applicationHandler.removeCallbacksAndMessages(/* token= */ null);
|
||||
requirementsWatcher.stop();
|
||||
// Reset state.
|
||||
downloads = Collections.emptyList();
|
||||
pendingMessages = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user