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

Commit d0546353 authored by Diego Perez's avatar Diego Perez
Browse files

Move StatusBar to use statusBarColor theme attribute

Change-Id: Ic0d8f4520a6dcb7225a2947cc56dc06a7340d3ba
parent 220f360e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ public class StatusBar extends CustomBar {

    private final int mSimulatedPlatformVersion;
    /** Status bar background color attribute name. */
    private static final String ATTR_COLOR = "colorPrimaryDark";
    private static final String ATTR_COLOR = "statusBarColor";

    public StatusBar(BridgeContext context, Density density, int direction, boolean RtlEnabled,
            int simulatedPlatformVersion) throws XmlPullParserException {
@@ -50,6 +50,7 @@ public class StatusBar extends CustomBar {

        // FIXME: use FILL_H?
        setGravity(Gravity.START | Gravity.TOP | Gravity.RIGHT);

        int color = getThemeAttrColor(ATTR_COLOR, true);
        setBackgroundColor(color == 0 ? Config.getStatusBarColor(simulatedPlatformVersion) : color);