summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2010-11-11 13:20:08 -0800
committerChet Haase <chet@google.com>2010-11-11 13:20:08 -0800
commit9891e1fce5f29d0421d34aa481037417bd70853d (patch)
tree5f14b902c6ad8ee3b917d55de8eaf638c7737fb6 /core/java
parentc55fa1b999068fc7f242b88a87270b249ab366eb (diff)
downloadframeworks_base-9891e1fce5f29d0421d34aa481037417bd70853d.zip
frameworks_base-9891e1fce5f29d0421d34aa481037417bd70853d.tar.gz
frameworks_base-9891e1fce5f29d0421d34aa481037417bd70853d.tar.bz2
Add invalidation to Drawable when its properties change
invalidateSelf() already exists on Drawable. This triggers a call to callback listeners so that they know the drawable has been invalidated. For example, the background drawable on View will cause the View itself to be invalidated. Change-Id: I45b231a7600dcf3bc139e4059b7c9940ff49f60c
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/view/View.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 454ef4d..026f1a0 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -8637,7 +8637,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
public void setBackgroundColor(int color) {
if (mBGDrawable instanceof ColorDrawable) {
((ColorDrawable) mBGDrawable).setColor(color);
- invalidate();
} else {
setBackgroundDrawable(new ColorDrawable(color));
}