Only alert when first showing.
Jeff Sharkey [Wed, 19 Apr 2017 17:14:47 +0000 (11:14 -0600)]
Test: builds, boots
Bug: 37493685
Change-Id: I76cea80de092f99615b4a42058f2abf5f9cdb797

src/com/android/providers/downloads/DownloadNotifier.java

index ec1305f..c36dbd8 100644 (file)
@@ -219,6 +219,7 @@ public class DownloadNotifier {
                 mActiveNotifs.put(tag, firstShown);
             }
             builder.setWhen(firstShown);
+            builder.setOnlyAlertOnce(true);
 
             // Build action intents
             if (type == TYPE_ACTIVE || type == TYPE_WAITING) {