am 0069301d: Merge "Fix thread affinity of FingerprintManager." into mnc-dev

* commit '0069301d364a219bbd4b166ba6f4d9be854d556f':
  Fix thread affinity of FingerprintManager.
This commit is contained in:
Alex Klyubin
2015-04-30 21:09:36 +00:00
committed by Android Git Automerger

View File

@@ -626,7 +626,13 @@ public class FingerprintManager {
return 0; 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) { public void handleMessage(android.os.Message msg) {
switch(msg.what) { switch(msg.what) {
case MSG_ENROLL_RESULT: case MSG_ENROLL_RESULT:
@@ -711,6 +717,7 @@ public class FingerprintManager {
if (mService == null) { if (mService == null) {
Slog.v(TAG, "FingerprintManagerService was null"); Slog.v(TAG, "FingerprintManagerService was null");
} }
mHandler = new MyHandler(context);
} }
private int getCurrentUserId() { private int getCurrentUserId() {