From 8354fa65ebf4f44dd189d1d6f33767cf009b5769 Mon Sep 17 00:00:00 2001 From: Bjorn Bringert Date: Wed, 24 Feb 2010 23:54:29 +0000 Subject: Make setBackgroundResource() remotable Change-Id: Iad9c2bdf743a81a085024cad9dc340ae8a983f34 --- core/java/android/view/View.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index f6f5235..679206d 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -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; -- cgit v1.1