From 70bbf5b2cc83fcd356e117050ce3ace8852561aa Mon Sep 17 00:00:00 2001 From: kasif Date: Wed, 25 Sep 2013 15:50:30 +0530 Subject: 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 --- src/com/android/providers/downloads/DownloadService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/providers/downloads/DownloadService.java b/src/com/android/providers/downloads/DownloadService.java index 0d4266fb..3f29841a 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 -- cgit v1.2.3