Use light scrim when the wallpaper supports it

Test: visual
Change-Id: Ica238b4b2810bb33b4677e4214c226b62a79b24b
This commit is contained in:
Lucas Dupin
2020-02-06 09:28:06 -08:00
parent c3175319e1
commit ba2b48ab69

View File

@@ -1725,7 +1725,8 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
if (!(mBackgroundDrawable instanceof ScrimDrawable)) {
return;
}
((ScrimDrawable) mBackgroundDrawable).setColor(Color.BLACK, animate);
((ScrimDrawable) mBackgroundDrawable).setColor(colors.supportsDarkText() ? Color.WHITE
: Color.BLACK, animate);
View decorView = getWindow().getDecorView();
if (colors.supportsDarkText()) {
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR |