From 7b7fa39decefca0ff83b1e3758cba11df90f94cd Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Thu, 28 Jul 2016 14:03:49 -0600 Subject: Waiting for Wi-Fi notification is not ongoing. Only active downloads should be classified as ongoing notifications. Bug: 30065873 Change-Id: I778eafb0737c7da17216fb3012847e6a3beccde9 --- src/com/android/providers/downloads/DownloadNotifier.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/com/android/providers/downloads') diff --git a/src/com/android/providers/downloads/DownloadNotifier.java b/src/com/android/providers/downloads/DownloadNotifier.java index d5808690..d13bb5e2 100644 --- a/src/com/android/providers/downloads/DownloadNotifier.java +++ b/src/com/android/providers/downloads/DownloadNotifier.java @@ -213,7 +213,9 @@ public class DownloadNotifier { downloadIds); builder.setContentIntent(PendingIntent.getBroadcast(mContext, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT)); - builder.setOngoing(true); + if (type == TYPE_ACTIVE) { + builder.setOngoing(true); + } // Add a Cancel action final Uri cancelUri = new Uri.Builder().scheme("cancel-dl").appendPath(tag).build(); -- cgit v1.2.3