summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Klyubin <klyubin@google.com>2015-04-30 20:56:17 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-30 20:56:24 +0000
commit0069301d364a219bbd4b166ba6f4d9be854d556f (patch)
tree7dcb5b2fd5d2cf122c3254c7746fe703d5990857
parent10a54a7989a03eb0fdee7641c5795ac85b57e0dc (diff)
parent24e9e966a85c416a94482fcd10dbdd10ceeb9e6c (diff)
downloadframeworks_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.java9
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() {