From 6cfe97725ede972940bf3090a4474b1e2c017a9f Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 23 Nov 2011 10:17:22 -0800 Subject: Start downloads as a new task Bug: 5661310 Change-Id: Ib6d4d08474116d6a222eedd0cf40830c9286a2dd --- src/com/android/browser/DownloadHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/browser/DownloadHandler.java b/src/com/android/browser/DownloadHandler.java index 17ad320..6e2c786 100644 --- a/src/com/android/browser/DownloadHandler.java +++ b/src/com/android/browser/DownloadHandler.java @@ -67,6 +67,7 @@ public class DownloadHandler { // that matches. Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(url), mimetype); + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); ResolveInfo info = activity.getPackageManager().resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); if (info != null) { -- cgit v1.1