diff options
| author | Chet Haase <chet@google.com> | 2010-11-11 13:20:08 -0800 |
|---|---|---|
| committer | Chet Haase <chet@google.com> | 2010-11-11 13:20:08 -0800 |
| commit | 9891e1fce5f29d0421d34aa481037417bd70853d (patch) | |
| tree | 5f14b902c6ad8ee3b917d55de8eaf638c7737fb6 /core/java | |
| parent | c55fa1b999068fc7f242b88a87270b249ab366eb (diff) | |
| download | frameworks_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.java | 1 |
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)); } |
