diff options
author | Vasu Nori <vnori@google.com> | 2010-12-15 16:47:10 -0800 |
---|---|---|
committer | Vasu Nori <vnori@google.com> | 2010-12-15 18:11:42 -0800 |
commit | 5c8e74088882d6253a29e6b695a5936c038d4842 (patch) | |
tree | 0609da2bc2f722e14dea60d978cd009a6840c82a /src/com/android/providers | |
parent | a1cbbb41a7423c6f87b2f461075aad4c665f19dd (diff) | |
download | android_packages_providers_DownloadProvider-5c8e74088882d6253a29e6b695a5936c038d4842.tar.gz android_packages_providers_DownloadProvider-5c8e74088882d6253a29e6b695a5936c038d4842.tar.bz2 android_packages_providers_DownloadProvider-5c8e74088882d6253a29e6b695a5936c038d4842.zip |
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
Diffstat (limited to 'src/com/android/providers')
-rw-r--r-- | src/com/android/providers/downloads/DownloadNotification.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |