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

Commit 9cd910de authored by Jeff Pu's avatar Jeff Pu Committed by Android (Google) Code Review
Browse files

Merge "Do not execute fingerDown command if there is no existing HAL session" into main

parents f00f4b39 2981461b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -875,6 +875,10 @@ public class FingerprintProvider implements IBinder.DeathRecipient, ServiceProvi
    public void simulateVhalFingerDown(int userId, int sensorId) {
        Slog.d(getTag(), "Simulate virtual HAL finger down event");
        final AidlSession session = mFingerprintSensors.get(sensorId).getSessionForUser(userId);
        if (session == null) {
            Slog.e(getTag(), "no existing hal session found - aborting");
            return;
        }
        final PointerContext pc = new PointerContext();
        try {
            session.getSession().onPointerDownWithContext(pc);