diff options
author | Sascha Haeberling <haeberling@google.com> | 2013-09-12 18:34:25 -0700 |
---|---|---|
committer | Sascha Haeberling <haeberling@google.com> | 2013-09-12 18:35:24 -0700 |
commit | 1e689c254960f0ced0d19d91067cc5ef703dec64 (patch) | |
tree | 4099e1a78416c0b525119102003803a2e42a71ec /src/com/android/camera/tinyplanet | |
parent | a5a08d7642a1fdf961b057cc90e76c4c93103c15 (diff) | |
download | android_packages_apps_Snap-1e689c254960f0ced0d19d91067cc5ef703dec64.tar.gz android_packages_apps_Snap-1e689c254960f0ced0d19d91067cc5ef703dec64.tar.bz2 android_packages_apps_Snap-1e689c254960f0ced0d19d91067cc5ef703dec64.zip |
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
Diffstat (limited to 'src/com/android/camera/tinyplanet')
-rw-r--r-- | src/com/android/camera/tinyplanet/TinyPlanetFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
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); } /** |