diff options
author | John Reck <jreck@google.com> | 2011-07-25 11:36:17 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-07-25 13:59:38 -0700 |
commit | cadae72b6309303bc7b22e85181222b73e176c32 (patch) | |
tree | a33394121bd6c3553f9dc4a6d3dca04a914f4604 /src/com/android/browser/CrashRecoveryHandler.java | |
parent | 420d149566e19f1663db69420375b6dd1f0acd6f (diff) | |
download | packages_apps_browser-cadae72b6309303bc7b22e85181222b73e176c32.zip packages_apps_browser-cadae72b6309303bc7b22e85181222b73e176c32.tar.gz packages_apps_browser-cadae72b6309303bc7b22e85181222b73e176c32.tar.bz2 |
Switch to a background thread pool
Bug: 5019676
Use a shared thread pool
Eliminate some unnecessary use of AsyncTask (which has extra
overhead compared to using a thread pool)
Change-Id: I01d6c84816a9c9705216c8fdb8ed8c990265626a
Diffstat (limited to 'src/com/android/browser/CrashRecoveryHandler.java')
-rw-r--r-- | src/com/android/browser/CrashRecoveryHandler.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/browser/CrashRecoveryHandler.java b/src/com/android/browser/CrashRecoveryHandler.java index 995d119..aa48aac 100644 --- a/src/com/android/browser/CrashRecoveryHandler.java +++ b/src/com/android/browser/CrashRecoveryHandler.java @@ -25,7 +25,6 @@ import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.os.Handler; -import android.os.Looper; import android.os.Message; import android.os.Parcel; import android.util.Log; @@ -83,8 +82,7 @@ public class CrashRecoveryHandler { mController = controller; mContext = mController.getActivity().getApplicationContext(); mForegroundHandler = new Handler(); - Looper looper = BrowserSettings.getInstance().getBackgroundLooper(); - mBackgroundHandler = new Handler(looper) { + mBackgroundHandler = new Handler(BackgroundHandler.getLooper()) { @Override public void handleMessage(Message msg) { |