summaryrefslogtreecommitdiffstats
path: root/policy/src/com/android
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-08-25 12:29:46 -0700
committerJeff Brown <jeffbrown@google.com>2012-08-25 13:40:26 -0700
commita2910d0abbbe18ba1710dfd4a31af45769632255 (patch)
treebac98df3737fe3df7e9cd168973fcfe62fad05b0 /policy/src/com/android
parentba94170a7a4f78d68fe228e9ee35ed82c4de09c8 (diff)
downloadframeworks_base-a2910d0abbbe18ba1710dfd4a31af45769632255.zip
frameworks_base-a2910d0abbbe18ba1710dfd4a31af45769632255.tar.gz
frameworks_base-a2910d0abbbe18ba1710dfd4a31af45769632255.tar.bz2
Make it easier to create asynchronous Handlers.
There are potentially very many Handlers owned by services that should not be blocked by barriers introduced by UI traversals occurring on the same thread (if that ever happens). Add some convenience constructors to make it easy to switch these Handlers over to being async. Bug: 7057752 Change-Id: I64d9bffe81e7c52ada4cfad4e89d4340153f4688
Diffstat (limited to 'policy/src/com/android')
-rw-r--r--policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
index 3ea5020..236a4ea 100644
--- a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
+++ b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
@@ -971,7 +971,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback {
* interacts with the keyguard ui should be posted to this handler, rather
* than called directly.
*/
- private Handler mHandler = new Handler(Looper.myLooper(), null, true /*async*/) {
+ private Handler mHandler = new Handler(true /*async*/) {
@Override
public void handleMessage(Message msg) {
switch (msg.what) {