summaryrefslogtreecommitdiffstats
path: root/core/java/android/content
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2014-11-14 15:49:45 -0800
committerJeff Brown <jeffbrown@google.com>2014-11-14 17:22:31 -0800
commitbba231d7a63b58a8c2b174722ed1487b0f7d8270 (patch)
tree87a2d0de987178fcde2c23a07a0db977a7daf4f7 /core/java/android/content
parent4d2d97763f0963d7011d04290dc87b2940aefb33 (diff)
downloadframeworks_base-bba231d7a63b58a8c2b174722ed1487b0f7d8270.zip
frameworks_base-bba231d7a63b58a8c2b174722ed1487b0f7d8270.tar.gz
frameworks_base-bba231d7a63b58a8c2b174722ed1487b0f7d8270.tar.bz2
Explicitly bind AsyncTask to main looper.
It seems we were sort of trying to do this by forcing the AsyncTask static initializer to run at certain times but it was not sufficiently reliable. In particular, this resulted in occasional system server crashes. Bug: 18192406 Change-Id: Ief73210c60e7680fbed6df74e3e58809b7ec7e4d
Diffstat (limited to 'core/java/android/content')
-rw-r--r--core/java/android/content/ContentProvider.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/java/android/content/ContentProvider.java b/core/java/android/content/ContentProvider.java
index c8f9b7d..4c82efd 100644
--- a/core/java/android/content/ContentProvider.java
+++ b/core/java/android/content/ContentProvider.java
@@ -1659,12 +1659,6 @@ public abstract class ContentProvider implements ComponentCallbacks2 {
}
private void attachInfo(Context context, ProviderInfo info, boolean testing) {
- /*
- * We may be using AsyncTask from binder threads. Make it init here
- * so its static handler is on the main thread.
- */
- AsyncTask.init();
-
mNoPerms = testing;
/*