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

Commit dae93eb7 authored by brycelee's avatar brycelee
Browse files

Enable low light clock dream component for new low light behavior.

This change makes the low light dream component available for use when
the low light dream behavior flag is active. Previously, this was made
available for the now defunct low light clock flag.

Fixes: 415848637
Test: manual - verified behavior working on device
Flag: android.os.low_light_dream_behavior
Change-Id: I0401f46b89eb695c2ca06e1dc32f5e8f1758000c
parent f97b7136
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.systemui.dreams.dagger;

import static android.os.Flags.lowLightDreamBehavior;

import android.annotation.Nullable;
import android.app.DreamManager;
import android.app.Service;
@@ -26,7 +28,6 @@ import android.content.res.Resources;

import com.android.dream.lowlight.dagger.LowLightDreamComponent;
import com.android.settingslib.dream.DreamBackend;
import com.android.systemui.Flags;
import com.android.systemui.ambient.touch.scrim.dagger.ScrimModule;
import com.android.systemui.complication.dagger.RegisteredComplicationsModule;
import com.android.systemui.dagger.SysUISingleton;
@@ -257,7 +258,7 @@ public interface DreamModule {
    @Named(LOW_LIGHT_DREAM_SERVICE)
    static ComponentName providesLowLightDreamService(Context context,
            @Named(LOW_LIGHT_CLOCK_DREAM) ComponentName clockDream) {
        if (Flags.lowLightClockDream()) {
        if (lowLightDreamBehavior()) {
            return clockDream;
        }