commit | 7d3082a3f09e32e7c42b2896e90902157039b10e | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Wed Jul 11 17:52:54 2012 -0700 |
committer | Romain Guy <romainguy@google.com> | Wed Jul 11 17:52:54 2012 -0700 |
tree | 5c232457d90ed5618518225a70a09b07ced44d96 | |
parent | 4c9dfc4da992f67a86209d8b2b8539d697373ad6 [diff] |
Update View's opacity when changing the background color Change-Id: Ib5851d47918c99d4906055a9d0245ea100aee231
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index d81b7c1..5f8c75a 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java
@@ -13961,6 +13961,7 @@ public void setBackgroundColor(int color) { if (mBackground instanceof ColorDrawable) { ((ColorDrawable) mBackground).setColor(color); + computeOpaqueFlags(); } else { setBackground(new ColorDrawable(color)); }