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

Commit d9da0355 authored by Beverly's avatar Beverly
Browse files

Always use light reveal scrim

It's used as the Doze background, so even
if AOD isn't enabled, we still want it for
the bg to the DOCKED state.

Test: manual
Fixes: 191525374
Change-Id: Ib9a7a80dd2f2a9cfb00935c28d23cee0fe13c657
parent 35062e84
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -62,8 +62,7 @@
    <com.android.systemui.statusbar.LightRevealScrim
            android:id="@+id/light_reveal_scrim"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:visibility="gone" />
            android:layout_height="match_parent" />

    <include layout="@layout/status_bar_expanded"
        android:layout_width="match_parent"
+1 −7
Original line number Diff line number Diff line
@@ -1044,7 +1044,7 @@ public class StatusBar extends SystemUI implements DemoMode,
                mNotificationShadeWindowViewController,
                mNotificationPanelViewController,
                mAmbientIndicationContainer);
        mDozeParameters.addCallback(this::updateLightRevealScrimVisibility);
        updateLightRevealScrimVisibility();

        mConfigurationController.addCallback(this);

@@ -4956,11 +4956,5 @@ public class StatusBar extends SystemUI implements DemoMode,
        }

        mLightRevealScrim.setAlpha(mScrimController.getState().getMaxLightRevealScrimAlpha());
        if (mFeatureFlags.useNewLockscreenAnimations()
                && (mDozeParameters.getAlwaysOn() || mDozeParameters.isQuickPickupEnabled())) {
            mLightRevealScrim.setVisibility(View.VISIBLE);
        } else {
            mLightRevealScrim.setVisibility(View.GONE);
        }
    }
}