Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Dil3mm4/244edbfa13136fda61d5d1d5b552a09a to your computer and use it in GitHub Desktop.
Save Dil3mm4/244edbfa13136fda61d5d1d5b552a09a to your computer and use it in GitHub Desktop.
From 642f78576b724f45bd7072ad386cd32eec57fd8b Mon Sep 17 00:00:00 2001
From: Dil3mm4 <[email protected]>
Date: Sat, 28 Nov 2020 01:07:31 +0000
Subject: [PATCH 1/2] FODCircleView: don't hide if
mUpdateMonitor.isFingerprintDetectionRunning() is false
This solves an edge-case (described in the test below) without affecting FOD correct functionality.
We have reliable ways to hide the view in any case.
Tests:
- open third-party app that requests biometric on activity opening, lock device, unlock via pattern or pin, ensure FOD appears on the activity that was previously left open.
diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java b/packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java
index 234a0019666b..d370351e3bc4 100644
--- a/packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java
+++ b/packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java
@@ -160,8 +160,6 @@ public class FODCircleView extends ImageView {
} else {
hide();
}
- } else {
- hide();
}
}
--
2.20.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment