summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkasif <kasif@codeaurora.org>2013-09-25 10:20:30 (GMT)
committerSteve Kondik <shade@chemlab.org>2013-12-20 22:50:00 (GMT)
commit70bbf5b2cc83fcd356e117050ce3ace8852561aa (patch)
tree77bd4119edae79c52d0ac5b066b7587b29222fcc
parentfe7c9a8ecca73b69b13e47d5e82238a56037ce72 (diff)
downloadandroid_packages_providers_DownloadProvider-70bbf5b2cc83fcd356e117050ce3ace8852561aa.zip
android_packages_providers_DownloadProvider-70bbf5b2cc83fcd356e117050ce3ace8852561aa.tar.gz
android_packages_providers_DownloadProvider-70bbf5b2cc83fcd356e117050ce3ace8852561aa.tar.bz2
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
-rw-r--r--src/com/android/providers/downloads/DownloadService.java1
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 0d4266f..3f29841 100644
--- a/src/com/android/providers/downloads/DownloadService.java
+++ b/src/com/android/providers/downloads/DownloadService.java
@@ -323,6 +323,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