summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVasu Nori <vnori@google.com>2010-10-27 15:22:19 -0700
committerVasu Nori <vnori@google.com>2010-11-01 14:21:08 -0700
commit71b8c23e564d4f9a465845b5c9b6a6c53c1ba96b (patch)
tree87af70fb509577b8dfab36a1c7333e8ce29d5d79 /core
parente58a5ad04b4e181e86ae573fa3a06d141bddf63a (diff)
downloadframeworks_base-71b8c23e564d4f9a465845b5c9b6a6c53c1ba96b.zip
frameworks_base-71b8c23e564d4f9a465845b5c9b6a6c53c1ba96b.tar.gz
frameworks_base-71b8c23e564d4f9a465845b5c9b6a6c53c1ba96b.tar.bz2
add NOTIFICATION_CLICK_ constants to DownloadManager
DownloadReceive in packages/providers/Downloadproviders sends intents when notification messages are clicked on. When using public API of DM, added code to include download entry ids to the above intents. The constants added here support that code. intents when Change-Id: Ibe53ccd9934c73175459e42e3d417eee69ae6735
Diffstat (limited to 'core')
-rw-r--r--core/java/android/app/DownloadManager.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/app/DownloadManager.java b/core/java/android/app/DownloadManager.java
index 570e494..592a63b 100644
--- a/core/java/android/app/DownloadManager.java
+++ b/core/java/android/app/DownloadManager.java
@@ -272,6 +272,14 @@ public class DownloadManager {
*/
public static final String EXTRA_DOWNLOAD_ID = "extra_download_id";
+ /**
+ * When clicks on multiple notifications are received, the following
+ * provides an array of download ids corresponding to the download notification that was
+ * clicked. It can be retrieved by the receiver of this
+ * Intent using {@link android.content.Intent#getLongArrayExtra(String)}.
+ */
+ public static final String EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS = "extra_click_download_ids";
+
// this array must contain all public columns
private static final String[] COLUMNS = new String[] {
COLUMN_ID,