bugfix: setBackgroundAlpha() has a side effect to global resource

This commit is contained in:
cgspine
2020-03-31 19:12:13 +08:00
parent a18af47511
commit c8b60ab444
2 changed files with 2 additions and 2 deletions
@@ -674,7 +674,7 @@ public class QMUITopBar extends QMUIRelativeLayout implements IQMUISkinHandlerVi
* @param alpha 取值范围:[0, 255],255表示不透明
*/
public void setBackgroundAlpha(int alpha) {
this.getBackground().setAlpha(alpha);
this.getBackground().mutate().setAlpha(alpha);
}
/**
@@ -163,7 +163,7 @@ public class QMUITopBarLayout extends QMUIFrameLayout implements IQMUISkinDefaul
* @param alpha 取值范围:[0, 255],255表示不透明
*/
public void setBackgroundAlpha(int alpha) {
this.getBackground().setAlpha(alpha);
this.getBackground().mutate().setAlpha(alpha);
}
/**