summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/providers/downloads/DownloadService.java2
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 58cf380c..48aa2d84 100644
--- a/src/com/android/providers/downloads/DownloadService.java
+++ b/src/com/android/providers/downloads/DownloadService.java
@@ -364,7 +364,6 @@ public class DownloadService extends Service {
final int idColumn = cursor.getColumnIndexOrThrow(Downloads.Impl._ID);
while (cursor.moveToNext()) {
final long id = cursor.getLong(idColumn);
- staleIds.remove(id);
DownloadInfo info = mDownloads.get(id);
if (info != null) {
@@ -396,6 +395,7 @@ public class DownloadService extends Service {
isActive |= activeDownload;
isActive |= activeScan;
+ staleIds.remove(id);
}
// Keep track of nearest next action