From 1e689c254960f0ced0d19d91067cc5ef703dec64 Mon Sep 17 00:00:00 2001 From: Sascha Haeberling Date: Thu, 12 Sep 2013 18:34:25 -0700 Subject: Fix DeadLock in TinyPlanet. Bug: 10393598 Now that we acquire the lock inside doInBackground, we need to make sure to run the AsyncTasks in parallel. Change-Id: If253f375d56c352c30076f00cf923dfa521f2db4 --- src/com/android/camera/tinyplanet/TinyPlanetFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/com/android/camera/tinyplanet/TinyPlanetFragment.java b/src/com/android/camera/tinyplanet/TinyPlanetFragment.java index 2c9ad41a2..c49f77ef0 100644 --- a/src/com/android/camera/tinyplanet/TinyPlanetFragment.java +++ b/src/com/android/camera/tinyplanet/TinyPlanetFragment.java @@ -173,7 +173,7 @@ public class TinyPlanetFragment extends DialogFragment implements PreviewSizeLis } } } - }).execute(); + }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } }; @@ -319,7 +319,7 @@ public class TinyPlanetFragment extends DialogFragment implements PreviewSizeLis image.mSize, image.mSize, 0, null, doneListener, getActivity() .getContentResolver()); } - }).execute(); + }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); } /** -- cgit v1.2.3