summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-11-23 14:10:51 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-23 14:10:51 -0800
commit5039002e9f14fbb3e2569c0a33911eac51fae9e0 (patch)
tree57b95df46a1b4142c926409f5fc04aa50b0d0900
parent9ac672c759915a161a45c113da0957bfbba85cbb (diff)
parent6cfe97725ede972940bf3090a4474b1e2c017a9f (diff)
downloadpackages_apps_browser-5039002e9f14fbb3e2569c0a33911eac51fae9e0.zip
packages_apps_browser-5039002e9f14fbb3e2569c0a33911eac51fae9e0.tar.gz
packages_apps_browser-5039002e9f14fbb3e2569c0a33911eac51fae9e0.tar.bz2
am 6cfe9772: Start downloads as a new task
* commit '6cfe97725ede972940bf3090a4474b1e2c017a9f': Start downloads as a new task
-rw-r--r--src/com/android/browser/DownloadHandler.java1
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) {