diff options
| author | 2024-11-08 10:59:06 -0800 | |
|---|---|---|
| committer | 2024-11-08 11:00:15 -0800 | |
| commit | 0863a716c4923840c213c9efb4a1a28395c23a48 (patch) | |
| tree | 23e7fb8338e850da2ffce84df85e950739860c07 | |
| parent | 73cdce538e2bad650737bf1727e8edfe21500bad (diff) | |
Fix the bubble expanded scrim colour to use the shared constant
Flag: com.android.wm.shell.enable_bubble_bar
Test: manual - most noticeable in light theme with persistent taskbar
so set to that and then expand bubbles and observe
that the scrim on taskbar isn't darker than the scrim
on the rest of the screen
Bug: 376141576
Change-Id: I386525d48724139239782871eb7f6b4bf469cb92
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarLayerView.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarLayerView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarLayerView.java index 999ce17905ef..1f77abe54c8d 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarLayerView.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/BubbleBarLayerView.java @@ -19,6 +19,7 @@ package com.android.wm.shell.bubbles.bar; import static com.android.wm.shell.shared.animation.Interpolators.ALPHA_IN; import static com.android.wm.shell.shared.animation.Interpolators.ALPHA_OUT; import static com.android.wm.shell.bubbles.Bubbles.DISMISS_USER_GESTURE; +import static com.android.wm.shell.shared.bubbles.BubbleConstants.BUBBLE_EXPANDED_SCRIM_ALPHA; import android.annotation.Nullable; import android.content.Context; @@ -66,8 +67,6 @@ public class BubbleBarLayerView extends FrameLayout private static final String TAG = BubbleBarLayerView.class.getSimpleName(); - private static final float SCRIM_ALPHA = 0.2f; - private final BubbleController mBubbleController; private final BubbleData mBubbleData; private final BubblePositioner mPositioner; @@ -386,7 +385,7 @@ public class BubbleBarLayerView extends FrameLayout if (show) { mScrimView.animate() .setInterpolator(ALPHA_IN) - .alpha(SCRIM_ALPHA) + .alpha(BUBBLE_EXPANDED_SCRIM_ALPHA) .start(); } else { mScrimView.animate() |