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

Commit 079fd674 authored by Chet Haase's avatar Chet Haase
Browse files

invalidate() View when backgroundColor changes

Change-Id: I5dd41b6ccffe35a784eec74495649fede65e78f2
parent 7c608f25
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8627,6 +8627,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
    public void setBackgroundColor(int color) {
        if (mBGDrawable instanceof ColorDrawable) {
            ((ColorDrawable) mBGDrawable).setColor(color);
            invalidate();
        } else {
            setBackgroundDrawable(new ColorDrawable(color));
        }