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

Commit 7d3082a3 authored by Romain Guy's avatar Romain Guy
Browse files

Update View's opacity when changing the background color

Change-Id: Ib5851d47918c99d4906055a9d0245ea100aee231
parent 4c9dfc4d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -13961,6 +13961,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
    public void setBackgroundColor(int color) {
        if (mBackground instanceof ColorDrawable) {
            ((ColorDrawable) mBackground).setColor(color);
            computeOpaqueFlags();
        } else {
            setBackground(new ColorDrawable(color));
        }