summaryrefslogtreecommitdiffstats
path: root/ui/src/com/android/providers/downloads
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-11-27 13:47:24 -0800
committerJeff Sharkey <jsharkey@android.com>2012-11-27 13:47:24 -0800
commitf818eecf1b60ddba2854314863243d6aa87707b0 (patch)
tree962e6e1594528c44e3424943ab68d1966f88c3fe /ui/src/com/android/providers/downloads
parent65ab05d0a0070a73ded180c2d2f639644239bcf3 (diff)
downloadandroid_packages_providers_DownloadProvider-f818eecf1b60ddba2854314863243d6aa87707b0.tar.gz
android_packages_providers_DownloadProvider-f818eecf1b60ddba2854314863243d6aa87707b0.tar.bz2
android_packages_providers_DownloadProvider-f818eecf1b60ddba2854314863243d6aa87707b0.zip
Update extras for in-progress download.
Follow move to EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS extras, which was missing during refactoring. Bug: 7617373 Change-Id: I26203a2bc6fc0e211a1aa602c0de018332d76f60
Diffstat (limited to 'ui/src/com/android/providers/downloads')
-rw-r--r--ui/src/com/android/providers/downloads/ui/DownloadList.java13
1 files changed, 5 insertions, 8 deletions
diff --git a/ui/src/com/android/providers/downloads/ui/DownloadList.java b/ui/src/com/android/providers/downloads/ui/DownloadList.java
index 6ffa0691..ed369932 100644
--- a/ui/src/com/android/providers/downloads/ui/DownloadList.java
+++ b/ui/src/com/android/providers/downloads/ui/DownloadList.java
@@ -51,6 +51,7 @@ import android.widget.ExpandableListView.OnChildClickListener;
import android.widget.ListView;
import android.widget.Toast;
+import com.android.providers.downloads.Constants;
import com.android.providers.downloads.OpenHelper;
import java.io.FileNotFoundException;
@@ -624,15 +625,11 @@ public class DownloadList extends Activity {
.show();
}
- /**
- * TODO use constants/shared code?
- */
private void sendRunningDownloadClickedBroadcast(long id) {
- Intent intent = new Intent("android.intent.action.DOWNLOAD_LIST");
- intent.setClassName("com.android.providers.downloads",
- "com.android.providers.downloads.DownloadReceiver");
- intent.setData(ContentUris.withAppendedId(Downloads.Impl.ALL_DOWNLOADS_CONTENT_URI, id));
- intent.putExtra("multiple", false);
+ final Intent intent = new Intent(Constants.ACTION_LIST);
+ intent.setPackage(Constants.PROVIDER_PACKAGE_NAME);
+ intent.putExtra(DownloadManager.EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS,
+ new long[] { id });
sendBroadcast(intent);
}