Merge "Add log when upfps overlay isn't in sync with KeyguardUpdateMonitor" into sc-v2-dev

This commit is contained in:
Beverly Tai
2021-10-14 19:09:51 +00:00
committed by Android (Google) Code Review

View File

@@ -256,6 +256,13 @@ public class UdfpsController implements DozeReceiver {
@Override
public void hideUdfpsOverlay(int sensorId) {
mFgExecutor.execute(() -> {
if (mKeyguardUpdateMonitor.isFingerprintDetectionRunning()) {
// if we get here, we expect keyguardUpdateMonitor's fingerprintRunningState
// to be updated shortly afterwards
Log.d(TAG, "hiding udfps overlay when "
+ "mKeyguardUpdateMonitor.isFingerprintDetectionRunning()=true");
}
mServerRequest = null;
updateOverlay();
});