Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Dil3mm4/ecc59272e9eb2082d0349c0d8579706e to your computer and use it in GitHub Desktop.
Save Dil3mm4/ecc59272e9eb2082d0349c0d8579706e to your computer and use it in GitHub Desktop.
From 6f81bf2f33f3f221c9372e1a8a18eb9cd799521f Mon Sep 17 00:00:00 2001
From: Dil3mm4 <dil3mm4.dev@gmail.com>
Date: Fri, 27 Nov 2020 18:23:28 +0000
Subject: [PATCH] FODCircleView: ensure that when we check for bouncer, we're
on keyguard.
Bouncer doesn't seem to exist anywhere else.
Tests:
- have phone unlocked by trust agent, open any third party app with biometric unlock, ensure FOD is visible
diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java b/packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java
index 25521e48edb4..234a0019666b 100644
--- a/packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java
+++ b/packages/SystemUI/src/com/android/systemui/biometrics/FODCircleView.java
@@ -388,7 +388,7 @@ public class FODCircleView extends ImageView {
return;
}
- if (mUpdateMonitor.getUserCanSkipBouncer(mUpdateMonitor.getCurrentUser())) {
+ if (mIsKeyguard && mUpdateMonitor.getUserCanSkipBouncer(mUpdateMonitor.getCurrentUser())) {
// Ignore show calls if user can skip bouncer
return;
}
--
2.20.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment