diff options
author | Alex Klyubin <klyubin@google.com> | 2015-04-30 20:56:17 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-04-30 20:56:24 +0000 |
commit | 0069301d364a219bbd4b166ba6f4d9be854d556f (patch) | |
tree | 7dcb5b2fd5d2cf122c3254c7746fe703d5990857 | |
parent | 10a54a7989a03eb0fdee7641c5795ac85b57e0dc (diff) | |
parent | 24e9e966a85c416a94482fcd10dbdd10ceeb9e6c (diff) | |
download | frameworks_base-0069301d364a219bbd4b166ba6f4d9be854d556f.zip frameworks_base-0069301d364a219bbd4b166ba6f4d9be854d556f.tar.gz frameworks_base-0069301d364a219bbd4b166ba6f4d9be854d556f.tar.bz2 |
Merge "Fix thread affinity of FingerprintManager." into mnc-dev
-rw-r--r-- | core/java/android/hardware/fingerprint/FingerprintManager.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/core/java/android/hardware/fingerprint/FingerprintManager.java b/core/java/android/hardware/fingerprint/FingerprintManager.java index 779448b..cf96145 100644 --- a/core/java/android/hardware/fingerprint/FingerprintManager.java +++ b/core/java/android/hardware/fingerprint/FingerprintManager.java @@ -626,7 +626,13 @@ public class FingerprintManager { return 0; } - private Handler mHandler = new Handler() { + private Handler mHandler; + + private class MyHandler extends Handler { + private MyHandler(Context context) { + super(context.getMainLooper()); + } + public void handleMessage(android.os.Message msg) { switch(msg.what) { case MSG_ENROLL_RESULT: @@ -711,6 +717,7 @@ public class FingerprintManager { if (mService == null) { Slog.v(TAG, "FingerprintManagerService was null"); } + mHandler = new MyHandler(context); } private int getCurrentUserId() { |