commit | cb235b232abb0c225f43ebc906ddc76569018f57 | [log] [tgz] |
---|---|---|
author | Ned Burns <pixel@google.com> | Thu Oct 24 13:35:47 2019 -0400 |
committer | Ned Burns <pixel@google.com> | Thu Oct 24 13:35:47 2019 -0400 |
tree | 16fe3a01ecee4fb5ab6eaee6d5f6e29852733bb2 | |
parent | 90a6a4566a304904ce954852ace3b10e7f0f79f5 [diff] |
Mark BiometricUnlockController as @Singleton We were creating more than one, which was causing NPEs. Test: atest Bug: 143258869 Change-Id: I500fdb62a53ab95a532777a667933c93a140b91b
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java index bd3d848..ffcbc40 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/BiometricUnlockController.java
@@ -47,10 +47,12 @@ import java.lang.annotation.RetentionPolicy; import javax.inject.Inject; +import javax.inject.Singleton; /** * Controller which coordinates all the biometric unlocking actions with the UI. */ +@Singleton public class BiometricUnlockController extends KeyguardUpdateMonitorCallback { private static final String TAG = "BiometricUnlockCtrl";