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

Commit 8354fa65 authored by Bjorn Bringert's avatar Bjorn Bringert
Browse files

Make setBackgroundResource() remotable

Change-Id: Iad9c2bdf743a81a085024cad9dc340ae8a983f34
parent bda568fb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7336,6 +7336,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
     * Sets the background color for this view.
     * @param color the color of the background
     */
    @RemotableViewMethod
    public void setBackgroundColor(int color) {
        setBackgroundDrawable(new ColorDrawable(color));
    }
@@ -7346,6 +7347,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
     * @param resid The identifier of the resource.
     * @attr ref android.R.styleable#View_background
     */
    @RemotableViewMethod
    public void setBackgroundResource(int resid) {
        if (resid != 0 && resid == mBackgroundResource) {
            return;