diff options
author | Jeff Sharkey <jsharkey@android.com> | 2016-07-28 14:03:49 -0600 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2016-07-28 14:03:49 -0600 |
commit | 7b7fa39decefca0ff83b1e3758cba11df90f94cd (patch) | |
tree | 62f5d70a92aff459e60463622909f3e44305a13d /src | |
parent | db3442bf11d42254d2700cd7cf8b9b764ef87e1b (diff) | |
download | android_packages_providers_DownloadProvider-7b7fa39decefca0ff83b1e3758cba11df90f94cd.tar.gz android_packages_providers_DownloadProvider-7b7fa39decefca0ff83b1e3758cba11df90f94cd.tar.bz2 android_packages_providers_DownloadProvider-7b7fa39decefca0ff83b1e3758cba11df90f94cd.zip |
Waiting for Wi-Fi notification is not ongoing.
Only active downloads should be classified as ongoing notifications.
Bug: 30065873
Change-Id: I778eafb0737c7da17216fb3012847e6a3beccde9
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/providers/downloads/DownloadNotifier.java | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |