diff options
author | John Reck <jreck@google.com> | 2011-11-23 10:17:22 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-11-23 10:17:22 -0800 |
commit | 6cfe97725ede972940bf3090a4474b1e2c017a9f (patch) | |
tree | 623e4f7ca09a9f804c06381811d48c67c9587d7c | |
parent | 63faec479010e77762d5ffa517fdc65f3474383c (diff) | |
download | packages_apps_browser-6cfe97725ede972940bf3090a4474b1e2c017a9f.zip packages_apps_browser-6cfe97725ede972940bf3090a4474b1e2c017a9f.tar.gz packages_apps_browser-6cfe97725ede972940bf3090a4474b1e2c017a9f.tar.bz2 |
Start downloads as a new task
Bug: 5661310
Change-Id: Ib6d4d08474116d6a222eedd0cf40830c9286a2dd
-rw-r--r-- | src/com/android/browser/DownloadHandler.java | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |