summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-11-27 16:13:49 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-27 16:13:49 -0800
commite33e83a5c3cc97ce3b47f1f9b6410c3928f1f7de (patch)
treeb25a6cdd7aebc7ebe63d0b698204aea3f60ecc2f /ui
parenta940d3700093fb83c8916bd4b218761e534b9bd4 (diff)
parent8ec8bdebaefcecb8b3e6b9f724aba7b25406db21 (diff)
downloadandroid_packages_providers_DownloadProvider-e33e83a5c3cc97ce3b47f1f9b6410c3928f1f7de.tar.gz
android_packages_providers_DownloadProvider-e33e83a5c3cc97ce3b47f1f9b6410c3928f1f7de.tar.bz2
android_packages_providers_DownloadProvider-e33e83a5c3cc97ce3b47f1f9b6410c3928f1f7de.zip
am 8ec8bdeb: Merge "Update extras for in-progress download." into jb-mr1.1-dev
* commit '8ec8bdebaefcecb8b3e6b9f724aba7b25406db21': Update extras for in-progress download.
Diffstat (limited to 'ui')
-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);
}