diff options
| -rw-r--r-- | services/core/java/com/android/server/biometrics/sensors/face/Face10.java | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/services/core/java/com/android/server/biometrics/sensors/face/Face10.java b/services/core/java/com/android/server/biometrics/sensors/face/Face10.java index 49a4b7c4deb3..c2d4c152cba6 100644 --- a/services/core/java/com/android/server/biometrics/sensors/face/Face10.java +++ b/services/core/java/com/android/server/biometrics/sensors/face/Face10.java @@ -519,19 +519,17 @@ class Face10 implements IHwBinder.DeathRecipient { @NonNull String opPackageName) { mHandler.post(() -> { if (mCurrentChallengeOwner != null) { - Slog.w(TAG, "Current challenge owner: " + mCurrentChallengeOwner - + ", interrupted by: " + opPackageName); final ClientMonitorCallbackConverter listener = mCurrentChallengeOwner.getListener(); - if (listener == null) { - Slog.w(TAG, "Null listener, skip sending interruption callback"); - return; - } - - try { - listener.onChallengeInterrupted(mSensorId); - } catch (RemoteException e) { - Slog.e(TAG, "Unable to notify challenge interrupted", e); + Slog.w(TAG, "Current challenge owner: " + mCurrentChallengeOwner + + ", listener: " + listener + + ", interrupted by: " + opPackageName); + if (listener != null) { + try { + listener.onChallengeInterrupted(mSensorId); + } catch (RemoteException e) { + Slog.e(TAG, "Unable to notify challenge interrupted", e); + } } } |