mirror of
https://github.com/yurisieucuti/treble_evolution.git
synced 2024-11-24 09:46:19 +00:00
41 lines
2.1 KiB
Diff
41 lines
2.1 KiB
Diff
From 5675f8bf2ccab5ff902daf501c6803805f6ee355 Mon Sep 17 00:00:00 2001
|
|
From: Pierre-Hugues Husson <phh@phh.me>
|
|
Date: Mon, 2 May 2022 17:44:28 -0400
|
|
Subject: [PATCH 2/4] Ignore cancelled fingerprint events, they are expected,
|
|
plus add more fingerprint enroll logs
|
|
|
|
---
|
|
.../biometrics/fingerprint/FingerprintEnrollEnrolling.java | 3 +++
|
|
.../biometrics/fingerprint/FingerprintEnrollFindSensor.java | 1 +
|
|
2 files changed, 4 insertions(+)
|
|
|
|
diff --git a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java
|
|
index 6e908850e89..6746a71f3f2 100644
|
|
--- a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java
|
|
+++ b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollEnrolling.java
|
|
@@ -793,6 +793,9 @@ public class FingerprintEnrollEnrolling extends BiometricsEnrollEnrolling {
|
|
|
|
@Override
|
|
public void onEnrollmentError(int errMsgId, CharSequence errString) {
|
|
+ android.util.Log.e("PHH-Enroll", "heyo " + errMsgId + ", " + errString , new Exception());
|
|
+ if (errMsgId == 5) return;
|
|
+
|
|
onCancelEnrollment(errMsgId);
|
|
dismissTouchDialogIfSfps();
|
|
}
|
|
diff --git a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java
|
|
index 059173c198e..c89c2d0cfd0 100644
|
|
--- a/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java
|
|
+++ b/src/com/android/settings/biometrics/fingerprint/FingerprintEnrollFindSensor.java
|
|
@@ -369,6 +369,7 @@ public class FingerprintEnrollFindSensor extends BiometricEnrollBase implements
|
|
|
|
@Override
|
|
public void onEnrollmentError(int errMsgId, CharSequence errString) {
|
|
+ android.util.Log.e("PHH-Enroll", "heyo " + errMsgId + ", " + errString + ", " + mNextClicked, new Exception());
|
|
if (mNextClicked && errMsgId == FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
|
|
proceedToEnrolling(false /* cancelEnrollment */);
|
|
} else {
|
|
--
|
|
2.25.1
|
|
|