From 5c8e74088882d6253a29e6b695a5936c038d4842 Mon Sep 17 00:00:00 2001 From: Vasu Nori Date: Wed, 15 Dec 2010 16:47:10 -0800 Subject: when download-complete-notif is clicked on, don't show notif anymore bug:3272589 in HC, when using public API, if the downloaded file is in downloads data dir, wrong intent action is set when the user clicks on download-complete notification. fix this by sending the correct intent action if the download is in downloads data dir or any other location specified by the app. Change-Id: I72621be5f1d6a5caecb8ec85634b351e08b66c31 --- src/com/android/providers/downloads/DownloadNotification.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android') diff --git a/src/com/android/providers/downloads/DownloadNotification.java b/src/com/android/providers/downloads/DownloadNotification.java index 4002a97a..51f0ba95 100644 --- a/src/com/android/providers/downloads/DownloadNotification.java +++ b/src/com/android/providers/downloads/DownloadNotification.java @@ -233,7 +233,7 @@ class DownloadNotification { } else { caption = mContext.getResources() .getString(R.string.notification_download_complete); - if (download.mDestination == Downloads.Impl.DESTINATION_EXTERNAL) { + if (download.mDestination != Downloads.Impl.DESTINATION_SYSTEMCACHE_PARTITION) { intent = new Intent(Constants.ACTION_OPEN); } else { intent = new Intent(Constants.ACTION_LIST); -- cgit v1.2.3