Make bubble scrim be dark always

When the scrim is lighter & the pointer triangle is also
white, it's very hard to see and will not pass GAR.

Bug: 186441337
Test: atest ScrimControllerTest
Test: manual - expand bubble in dark & light theme on top of launcher
               and on top of some other app
             => notice scrim is always dark & pointer triangle is
                slightly more visible
Change-Id: I5e5c191bb813dc272284daf11e76c02ba17dc375
This commit is contained in:
Mady Mellor
2021-04-26 12:30:21 -07:00
parent 681f269d78
commit 3b68dba36f
2 changed files with 2 additions and 2 deletions

View File

@@ -264,7 +264,7 @@ public enum ScrimState {
public void prepare(ScrimState previousState) {
mFrontTint = Color.TRANSPARENT;
mBehindTint = Color.TRANSPARENT;
mBubbleTint = Color.TRANSPARENT;
mBubbleTint = Color.BLACK;
mFrontAlpha = 0f;
mBehindAlpha = mDefaultScrimAlpha;

View File

@@ -553,7 +553,7 @@ public class ScrimControllerTest extends SysuiTestCase {
assertScrimTinted(Map.of(
mScrimInFront, false,
mScrimBehind, false,
mScrimForBubble, false
mScrimForBubble, true
));
// Front scrim should be transparent