Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20460e00 authored by Kevin Chyn's avatar Kevin Chyn Committed by Android (Google) Code Review
Browse files

Merge "[BugFix][Fingerprint]fix client was canceled by service by mistake"

parents c264df3b 802c0a76
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -195,6 +195,8 @@ public abstract class AuthenticationClient<T> extends AcquisitionClient<T>
                    if (listener != null) {
                        listener.onAuthenticationFailed(getSensorId());
                    }
                } else {
                    mAlreadyDone = true;
                }
            }
        } catch (RemoteException e) {
+5 −0
Original line number Diff line number Diff line
@@ -176,6 +176,11 @@ public abstract class ClientMonitor<T> extends LoggableMonitor implements IBinde

    // TODO(b/157790417): Move this to the scheduler
    void binderDiedInternal(boolean clearListener) {
        if (isAlreadyDone()) {
            Slog.w(TAG, "Binder died but client is finished, ignoring");
            return;
        }

        // If the current client dies we should cancel the current operation.
        if (this instanceof Interruptable) {
            Slog.e(TAG, "Binder died, cancelling client");