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

* commit '07a2ebd39d4c77c2dbd3c6e2bddecf76894f9fba':
  Fix thread affinity of FingerprintManager.
This commit is contained in:
Alex Klyubin
2015-04-30 21:20:47 +00:00
committed by Android Git Automerger

View File

@@ -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() {