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

Unverified Commit 544114a9 authored by Michael Bestas's avatar Michael Bestas
Browse files

fixup! SystemUI: Allow to enable Lockscreen Media Art

Change-Id: I5d670128ba7d66a575f5ed751ba8c9ce2a2dcbb7
parent b1b890a0
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -96,6 +96,7 @@ public class NotificationMediaManager implements Dumpable, TunerService.Tunable

    private final StatusBarStateController mStatusBarStateController;
    private final SysuiColorExtractor mColorExtractor;
    private final TunerService mTunerService;
    private final KeyguardStateController mKeyguardStateController;
    private final KeyguardBypassController mKeyguardBypassController;
    private static final HashSet<Integer> PAUSED_MEDIA_STATES = new HashSet<>();
@@ -187,7 +188,8 @@ public class NotificationMediaManager implements Dumpable, TunerService.Tunable
            StatusBarStateController statusBarStateController,
            SysuiColorExtractor colorExtractor,
            KeyguardStateController keyguardStateController,
            DumpManager dumpManager) {
            DumpManager dumpManager,
            TunerService tunerService) {
        mContext = context;
        mMediaArtworkProcessor = mediaArtworkProcessor;
        mKeyguardBypassController = keyguardBypassController;
@@ -208,8 +210,8 @@ public class NotificationMediaManager implements Dumpable, TunerService.Tunable

        dumpManager.registerDumpable(this);

        final TunerService tunerService = Dependency.get(TunerService.class);
        tunerService.addTunable(this, LOCKSCREEN_MEDIA_METADATA);
        mTunerService = tunerService;
        mTunerService.addTunable(this, LOCKSCREEN_MEDIA_METADATA);
    }

    @Override
+7 −3
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ import com.android.systemui.statusbar.policy.KeyguardStateController;
import com.android.systemui.statusbar.policy.RemoteInputUriController;
import com.android.systemui.statusbar.window.StatusBarWindowController;
import com.android.systemui.tracing.ProtoTracer;
import com.android.systemui.tuner.TunerService;
import com.android.systemui.util.concurrency.DelayableExecutor;
import com.android.systemui.util.time.SystemClock;

@@ -103,7 +104,8 @@ public interface CentralSurfacesDependenciesModule {
            RemoteInputUriController remoteInputUriController,
            NotificationClickNotifier clickNotifier,
            ActionClickLogger actionClickLogger,
            DumpManager dumpManager) {
            DumpManager dumpManager,
            TunerService tunerService) {
        return new NotificationRemoteInputManager(
                context,
                notifPipelineFlags,
@@ -135,7 +137,8 @@ public interface CentralSurfacesDependenciesModule {
            StatusBarStateController statusBarStateController,
            SysuiColorExtractor colorExtractor,
            KeyguardStateController keyguardStateController,
            DumpManager dumpManager) {
            DumpManager dumpManager,
            TunerService tunerService) {
        return new NotificationMediaManager(
                context,
                centralSurfacesOptionalLazy,
@@ -150,7 +153,8 @@ public interface CentralSurfacesDependenciesModule {
                statusBarStateController,
                colorExtractor,
                keyguardStateController,
                dumpManager);
                dumpManager,
                tunerService);
    }

    /** */