From 9891e1fce5f29d0421d34aa481037417bd70853d Mon Sep 17 00:00:00 2001 From: Chet Haase Date: Thu, 11 Nov 2010 13:20:08 -0800 Subject: 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 --- core/java/android/view/View.java | 1 - 1 file changed, 1 deletion(-) (limited to 'core/java') 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)); } -- cgit v1.1