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

Commit 09452269 authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Make AlwaysOnDisplayPolicy a singleton

So we only ever register one SettingsObserver for the
AlwaysOnDisplayPolicy.

Test: manual
Fixes: 182755046
Change-Id: I93245bfd697ccc8653d26abe0f0194053b8655bc
parent e3e90bd0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -324,6 +324,7 @@ public class DependencyProvider {

    /** */
    @Provides
    @SysUISingleton
    public AlwaysOnDisplayPolicy provideAlwaysOnDisplayPolicy(Context context) {
        return new AlwaysOnDisplayPolicy(context);
    }