summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-06-30 15:13:31 -0700
committerJohn Reck <jreck@google.com>2011-06-30 15:13:31 -0700
commit84c2c090fa7891a05dd6e3c0c185ccdcf2a0d397 (patch)
tree0ebba47e2013d6dfc8b8d953e0af03e4622c6ded
parent4399b13ca463824bbab1ba422f4004cff100b483 (diff)
downloadpackages_apps_browser-84c2c090fa7891a05dd6e3c0c185ccdcf2a0d397.zip
packages_apps_browser-84c2c090fa7891a05dd6e3c0c185ccdcf2a0d397.tar.gz
packages_apps_browser-84c2c090fa7891a05dd6e3c0c185ccdcf2a0d397.tar.bz2
Fix AsyncTask
Change-Id: I5af7e028c2e8fffb2c21453864c90e030df25312
-rw-r--r--src/com/android/browser/Browser.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/Browser.java b/src/com/android/browser/Browser.java
index 65eb0ce..6fceaff 100644
--- a/src/com/android/browser/Browser.java
+++ b/src/com/android/browser/Browser.java
@@ -18,6 +18,7 @@ package com.android.browser;
import android.app.Application;
import android.content.Intent;
+import android.os.AsyncTask;
import android.util.Log;
import android.webkit.CookieSyncManager;
@@ -52,6 +53,8 @@ public class Browser extends Application {
if (LOGV_ENABLED)
Log.v(LOGTAG, "Browser.onCreate: this=" + this);
+ // Fix AsyncTask to use multiple threads
+ AsyncTask.setDefaultExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
// Fix heap utilization for better heap size characteristics.
VMRuntime.getRuntime().setTargetHeapUtilization(
TARGET_HEAP_UTILIZATION);