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

Commit 4d36ec11 authored by Adam Powell's avatar Adam Powell
Browse files

Make View#setBackgroundDrawable a no-op if setting the same background.

Change-Id: Idd3e0ae80609557d82a5564daa1cfb0abca42ded
parent 9c7b5ec0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -11122,6 +11122,10 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
     *        background
     */
    public void setBackgroundDrawable(Drawable d) {
        if (d == mBGDrawable) {
            return;
        }

        boolean requestLayout = false;

        mBackgroundResource = 0;