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

Commit 69b28036 authored by Austin Delgado's avatar Austin Delgado Committed by Android (Google) Code Review
Browse files

Merge "Call setIgnore directly on session" into main

parents b9245343 d9af83bb
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -24,3 +24,13 @@ flag {
      purpose: PURPOSE_BUGFIX
  }
}

flag {
  name: "set_ignore_speed_up"
  namespace: "biometrics_framework"
  description: "This flag controls whether setIgnoreDisplayTouches is called directly on session from FingerprintProvider"
  bug: "359289274"
  metadata {
      purpose: PURPOSE_BUGFIX
  }
}
+12 −1
Original line number Diff line number Diff line
@@ -791,6 +791,16 @@ public class FingerprintProvider implements IBinder.DeathRecipient, ServiceProvi

    @Override
    public void setIgnoreDisplayTouches(long requestId, int sensorId, boolean ignoreTouches) {
        if (Flags.setIgnoreSpeedUp()) {
            try {
                mFingerprintSensors.get(
                        sensorId).getLazySession().get().getSession().setIgnoreDisplayTouches(
                        ignoreTouches);
                Slog.d(getTag(), "setIgnoreDisplayTouches set to " + ignoreTouches);
            } catch (Exception e) {
                Slog.w(getTag(), "setIgnore failed", e);
            }
        } else {
            mFingerprintSensors.get(sensorId).getScheduler().getCurrentClientIfMatches(
                requestId, (client) -> {
                    if (!(client instanceof Udfps)) {
@@ -801,6 +811,7 @@ public class FingerprintProvider implements IBinder.DeathRecipient, ServiceProvi
                    ((Udfps) client).setIgnoreDisplayTouches(ignoreTouches);
                });
        }
    }

    @Override
    public void onPowerPressed() {