am 0069301d: Merge "Fix thread affinity of FingerprintManager." into mnc-dev
* commit '0069301d364a219bbd4b166ba6f4d9be854d556f': Fix thread affinity of FingerprintManager.
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user