Merge "Always use light reveal scrim" into sc-qpr1-dev

This commit is contained in:
TreeHugger Robot
2021-08-24 17:23:38 +00:00
committed by Android (Google) Code Review
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);
}
}
}