diff options
author | Vasu Nori <vnori@google.com> | 2010-11-16 18:01:56 -0800 |
---|---|---|
committer | Vasu Nori <vnori@google.com> | 2010-11-16 18:02:53 -0800 |
commit | 628bc7e9fe6305057835c4d8e5577611d2114116 (patch) | |
tree | 219ac686cb57a3668b3522014cc9fa40f1809da2 /src/com/android/browser/OpenDownloadReceiver.java | |
parent | 4cb5cbcd52602377881045e55ca24b63b4756aa7 (diff) | |
download | packages_apps_Browser-628bc7e9fe6305057835c4d8e5577611d2114116.zip packages_apps_Browser-628bc7e9fe6305057835c4d8e5577611d2114116.tar.gz packages_apps_Browser-628bc7e9fe6305057835c4d8e5577611d2114116.tar.bz2 |
get file uri and mimetype from downloadmanager before starting activity
related to bug:3198355
depends on Change-Id: I90bae443eec36968e0d533d9b07a514df369ac29
Change-Id: Ia7d1c10b06d55715002721c1422ea782eefbf6d6
Diffstat (limited to 'src/com/android/browser/OpenDownloadReceiver.java')
-rw-r--r-- | src/com/android/browser/OpenDownloadReceiver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/OpenDownloadReceiver.java b/src/com/android/browser/OpenDownloadReceiver.java index 3970a5f..0f0ba70 100644 --- a/src/com/android/browser/OpenDownloadReceiver.java +++ b/src/com/android/browser/OpenDownloadReceiver.java @@ -52,7 +52,7 @@ public class OpenDownloadReceiver extends BroadcastReceiver { openDownloadsPage(context); } else { Intent launchIntent = new Intent(Intent.ACTION_VIEW); - launchIntent.setDataAndType(uri, context.getContentResolver().getType(uri)); + launchIntent.setDataAndType(uri, manager.getMimeTypeForDownloadedFile(id)); launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); try { context.startActivity(launchIntent); |