Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0863a716 authored by Mady Mellor's avatar Mady Mellor
Browse files

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
parent 73cdce53
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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()