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

Commit 25ed6c6f authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

PowerWidget: Use resources for the indicator color mask

Replace direct usage of the color hex by the corresponding named
Holo resource, to ease redirection/overload by themes.

Change-Id: I3ac2018f54e5dd6c238e2e25bcf96caa1017cc7c
parent 39aef3c7
Loading
Loading
Loading
Loading
−891 B (194 B)
Loading image diff...
−891 B (194 B)
Loading image diff...
+1 −2
Original line number Diff line number Diff line
@@ -112,8 +112,7 @@ public abstract class PowerButton {
                    }
                    updateImageView(buttonIcon, mIcon);

                    int sColorMaskBase = Settings.System.getInt(context.getContentResolver(),
                            Settings.System.EXPANDED_VIEW_WIDGET_COLOR, 0xFF33B5E5);
                    int sColorMaskBase = res.getColor(android.R.color.holo_blue_light);
                    int sColorMaskOn    = sColorMaskBase;
                    int sColorMaskOff   = (sColorMaskBase & 0x00FFFFFF) | 0x33000000;
                    int sColorMaskInter = (sColorMaskBase & 0x00FFFFFF) | 0x60000000;