diff options
author | Matt Pietal <mpietal@google.com> | 2021-09-23 10:18:41 -0400 |
---|---|---|
committer | Matt Pietal <mpietal@google.com> | 2021-09-23 15:16:24 +0000 |
commit | ddfb4df1a83d6e51e23177790f0b0ecae207f764 (patch) | |
tree | 99896fc7f12930edc5fb074fa37f8dff73b37175 /packages/SystemUI/src/com/android/keyguard/LockIconViewController.java | |
parent | 38c00180bcfd4e2faeb0b183806a6c15a8c28a3f (diff) |
[DO NOT MERGE] Only show lock icon background with UDFPS
Otherwise the background should remain hidden (View.GONE) for devices
without the UDFPS sensor.
Fixes: 200813382
Test: atest LockIconViewControllerTest
Change-Id: I1ef3cef37de60e6968432869f4c946b6de414db4
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/LockIconViewController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/LockIconViewController.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java index aa79504ae7ca..52ebf2fa09d0 100644 --- a/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java +++ b/packages/SystemUI/src/com/android/keyguard/LockIconViewController.java @@ -345,7 +345,7 @@ public class LockIconViewController extends ViewController<LockIconView> impleme } private void updateColors() { - mView.updateColorAndBackgroundVisibility(mUdfpsSupported); + mView.updateColorAndBackgroundVisibility(); } private void updateConfiguration() { @@ -425,6 +425,8 @@ public class LockIconViewController extends ViewController<LockIconView> impleme boolean wasUdfpsEnrolled = mUdfpsEnrolled; mUdfpsSupported = mAuthController.getUdfpsSensorLocation() != null; + mView.setUseBackground(mUdfpsSupported); + mUdfpsEnrolled = mKeyguardUpdateMonitor.isUdfpsEnrolled(); if (wasUdfpsSupported != mUdfpsSupported || wasUdfpsEnrolled != mUdfpsEnrolled) { updateVisibility(); |