summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/AbstractGalleryActivity.java
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-01-28 16:16:44 -0800
committerBobby Georgescu <georgescu@google.com>2013-01-28 16:16:44 -0800
commitd00f521a3138a8f244c91748b0277290edbf61f6 (patch)
tree444e1cc89d08f91da1701fadfcab3c181fb73863 /src/com/android/gallery3d/app/AbstractGalleryActivity.java
parentca593b02ab6a3054f625878621ee5117953f7385 (diff)
downloadandroid_packages_apps_Gallery2-d00f521a3138a8f244c91748b0277290edbf61f6.tar.gz
android_packages_apps_Gallery2-d00f521a3138a8f244c91748b0277290edbf61f6.tar.bz2
android_packages_apps_Gallery2-d00f521a3138a8f244c91748b0277290edbf61f6.zip
Fix ANRs due to waiting for IO on UI thread
Bug: 7998915 Change-Id: I938145a7072170f713099a04578f98951b35cbab
Diffstat (limited to 'src/com/android/gallery3d/app/AbstractGalleryActivity.java')
-rw-r--r--src/com/android/gallery3d/app/AbstractGalleryActivity.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/app/AbstractGalleryActivity.java b/src/com/android/gallery3d/app/AbstractGalleryActivity.java
index acfc033b7..c9cce811a 100644
--- a/src/com/android/gallery3d/app/AbstractGalleryActivity.java
+++ b/src/com/android/gallery3d/app/AbstractGalleryActivity.java
@@ -343,9 +343,7 @@ public class AbstractGalleryActivity extends Activity implements GalleryContext
if (mBatchServiceIsBound && mBatchService != null) {
return mBatchService.getThreadPool();
} else {
- // Fall back on the old behavior if for some reason the
- // service is not available.
- return getThreadPool();
+ throw new RuntimeException("Batch service unavailable");
}
}
}