Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab39e80e authored by Lucas Dupin's avatar Lucas Dupin
Browse files

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
parent 3b5eb58b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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";