summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2010-02-24 23:54:29 +0000
committerBjorn Bringert <bringert@android.com>2010-02-25 10:46:03 +0000
commit8354fa65ebf4f44dd189d1d6f33767cf009b5769 (patch)
tree6fccca9ae8aeaad11a4c9c559428ec1f1fab4673 /core
parentbda568fb80a74bc965294572d94af6ff1486f73b (diff)
downloadframeworks_base-8354fa65ebf4f44dd189d1d6f33767cf009b5769.zip
frameworks_base-8354fa65ebf4f44dd189d1d6f33767cf009b5769.tar.gz
frameworks_base-8354fa65ebf4f44dd189d1d6f33767cf009b5769.tar.bz2
Make setBackgroundResource() remotable
Change-Id: Iad9c2bdf743a81a085024cad9dc340ae8a983f34
Diffstat (limited to 'core')
-rw-r--r--core/java/android/view/View.java2
1 files changed, 2 insertions, 0 deletions
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;