am 4f364c9e: Fix NPE cause by new fingerprint permission check
* commit '4f364c9e5f907756f540b5187c8f1d39aabb617f': Fix NPE cause by new fingerprint permission check
This commit is contained in:
@@ -205,7 +205,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
|
||||
handleScreenTurnedOn();
|
||||
break;
|
||||
case MSG_FINGERPRINT_AUTHENTICATED:
|
||||
handleFingerprintAuthenticated(msg.arg1, msg.arg2);
|
||||
handleFingerprintAuthenticated();
|
||||
break;
|
||||
case MSG_FINGERPRINT_HELP:
|
||||
handleFingerprintHelp(msg.arg1 /* msgId */, (String) msg.obj /* errString */);
|
||||
@@ -348,7 +348,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
|
||||
handleFingerprintHelp(-1, mContext.getString(R.string.fingerprint_not_recognized));
|
||||
}
|
||||
|
||||
private void handleFingerprintAuthenticated(int fingerId, int groupId) {
|
||||
private void handleFingerprintAuthenticated() {
|
||||
try {
|
||||
final int userId;
|
||||
try {
|
||||
@@ -524,9 +524,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
|
||||
|
||||
@Override
|
||||
public void onAuthenticationSucceeded(AuthenticationResult result) {
|
||||
mHandler.obtainMessage(MSG_FINGERPRINT_AUTHENTICATED,
|
||||
result.getFingerprint().getFingerId(),
|
||||
result.getFingerprint().getGroupId()).sendToTarget();
|
||||
mHandler.obtainMessage(MSG_FINGERPRINT_AUTHENTICATED).sendToTarget();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user