Skip to content

Commit 7d3082a

Browse files
author
Romain Guy
committed
Update View's opacity when changing the background color
Change-Id: Ib5851d47918c99d4906055a9d0245ea100aee231
1 parent 4c9dfc4 commit 7d3082a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/android/view/View.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13961,6 +13961,7 @@ public void jumpDrawablesToCurrentState() {
1396113961
public void setBackgroundColor(int color) {
1396213962
if (mBackground instanceof ColorDrawable) {
1396313963
((ColorDrawable) mBackground).setColor(color);
13964+
computeOpaqueFlags();
1396413965
} else {
1396513966
setBackground(new ColorDrawable(color));
1396613967
}

0 commit comments

Comments
 (0)