From ab39e80e6f911baf9c9a4efcf456eccbd470afc4 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Tue, 8 Oct 2019 14:42:00 -0700 Subject: [PATCH] Make KeyguardUpdateMonitor a singleton It was already supposed to be a singleton, but multiple instances ended up being created during the Dagger migration. Fixes: 142219747 Bug: 141751146 Bug: 136279712 Test: manual Change-Id: Iada305bd424c7de53bc3148459afb3a4b764e44c --- .../src/com/android/keyguard/KeyguardUpdateMonitor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java index dc8ee16e8645d..9bcccbc903dc9 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java @@ -118,12 +118,14 @@ import java.util.function.Consumer; import javax.inject.Inject; import javax.inject.Named; +import javax.inject.Singleton; /** * Watches for updates that may be interesting to the keyguard, and provides * the up to date information as well as a registration for callbacks that care * to be updated. */ +@Singleton public class KeyguardUpdateMonitor implements TrustManager.TrustListener { private static final String TAG = "KeyguardUpdateMonitor";