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
This commit is contained in:
Beverly
2021-08-24 09:25:03 -04:00
parent 35062e8426
commit d9da035596
2 changed files with 2 additions and 9 deletions

View File

@@ -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"

View File

@@ -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);
}
}
}