diff options
author | kasif <kasif@codeaurora.org> | 2013-09-25 15:50:30 +0530 |
---|---|---|
committer | Michael Bestas <mikeioannina@cyanogenmod.org> | 2016-01-24 03:25:47 +0200 |
commit | aeda32ab01c78437845a1bc41ee9e6941594d49d (patch) | |
tree | 8817bb724c817ad1fe719511f9ceac04ccbe8f94 /src/com/android/providers | |
parent | 6b95a91a2b7c6934ee1558b68dfb57c4b2f68e73 (diff) | |
download | android_packages_providers_DownloadProvider-aeda32ab01c78437845a1bc41ee9e6941594d49d.tar.gz android_packages_providers_DownloadProvider-aeda32ab01c78437845a1bc41ee9e6941594d49d.tar.bz2 android_packages_providers_DownloadProvider-aeda32ab01c78437845a1bc41ee9e6941594d49d.zip |
Clear notifications for Deleted items from Download list
Issue: Notifications for deleted items from the Download
list are not getting cleared and thus tapping on such
notifications causes crash (Illegal Argument Exception)
Fix: clear notifications for deleted items by adding them
in the stale list
Change-Id: I7a27d19fff994876eee07d4c4d63b2808cc516d3
CRs-Fixed: 536562
Diffstat (limited to 'src/com/android/providers')
-rw-r--r-- | src/com/android/providers/downloads/DownloadService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/providers/downloads/DownloadService.java b/src/com/android/providers/downloads/DownloadService.java index dbc2298d..d1190cc1 100644 --- a/src/com/android/providers/downloads/DownloadService.java +++ b/src/com/android/providers/downloads/DownloadService.java @@ -382,6 +382,7 @@ public class DownloadService extends Service { deleteFileIfExists(info.mFileName); resolver.delete(info.getAllDownloadsUri(), null, null); + staleIds.add(info.mId); } else { // Kick off download task if ready |