diff options
author | Jeff Sharkey <jsharkey@android.com> | 2016-03-30 20:31:05 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2016-03-30 20:31:07 -0600 |
commit | 08fa91badf0b34323c535dde6f8113e16ae94e21 (patch) | |
tree | 3ab7706d6a5480335d4941dd96822c366eb7d795 /src/com/android/providers/downloads/DownloadService.java | |
parent | a071d48ec571dddcfcb01e4d2da2902d8d70e3d2 (diff) | |
download | android_packages_providers_DownloadProvider-08fa91badf0b34323c535dde6f8113e16ae94e21.tar.gz android_packages_providers_DownloadProvider-08fa91badf0b34323c535dde6f8113e16ae94e21.tar.bz2 android_packages_providers_DownloadProvider-08fa91badf0b34323c535dde6f8113e16ae94e21.zip |
Avoid flashing download notifications.
When service starts, use new API to read the current set of
notification tags from the system instead of clearing and starting
from scratch.
Bug: 27634130
Change-Id: I049fe5e445a62a52042d7638c2cb50417977435f
Diffstat (limited to 'src/com/android/providers/downloads/DownloadService.java')
-rw-r--r-- | src/com/android/providers/downloads/DownloadService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/providers/downloads/DownloadService.java b/src/com/android/providers/downloads/DownloadService.java index 7845ce0e..7d4392e8 100644 --- a/src/com/android/providers/downloads/DownloadService.java +++ b/src/com/android/providers/downloads/DownloadService.java @@ -211,7 +211,7 @@ public class DownloadService extends Service { mScanner = new DownloadScanner(this); mNotifier = new DownloadNotifier(this); - mNotifier.cancelAll(); + mNotifier.init(); mObserver = new DownloadManagerContentObserver(); getContentResolver().registerContentObserver(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, |