when download-complete-notif is clicked on, don't show notif anymore
Vasu Nori [Thu, 16 Dec 2010 00:47:10 +0000 (16:47 -0800)]
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

index 4002a97..51f0ba9 100644 (file)
@@ -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);