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

Commit 053c97c5 authored by Tiger's avatar Tiger Committed by Tiger Huang
Browse files

Move the alpha value to the correct bits

The alpha value should be at top 8 bits. The original implementation of
navigation bar color scrim missed 2 zeros of SCRIM_ALPHA, which made the
color always transparent.

Fix: 330257475
Bug: 309578419
Test: Open a hello-world app in 3-button nav mode. See if nav bar has
      enough contrast.
Change-Id: Ifab587bc1b92225c4dc6ee79558a2ce628b47304
parent 6de35cc4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ public class DecorView extends FrameLayout implements RootViewSurfaceTaker, Wind

    private static final int SCRIM_LIGHT = 0xe6ffffff; // 90% white

    private static final int SCRIM_ALPHA = 0xcc0000; // 80% alpha
    private static final int SCRIM_ALPHA = 0xcc000000; // 80% alpha

    public static final ColorViewAttributes STATUS_BAR_COLOR_VIEW_ATTRIBUTES =
            new ColorViewAttributes(FLAG_TRANSLUCENT_STATUS,