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

Commit 8f2fe87e authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

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

parents 8bf1f5b1 4d36ec11
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -11122,6 +11122,10 @@ public class View implements Drawable.Callback2, KeyEvent.Callback, Accessibilit
     *        background
     *        background
     */
     */
    public void setBackgroundDrawable(Drawable d) {
    public void setBackgroundDrawable(Drawable d) {
        if (d == mBGDrawable) {
            return;
        }

        boolean requestLayout = false;
        boolean requestLayout = false;


        mBackgroundResource = 0;
        mBackgroundResource = 0;