mirror of
https://github.com/Tencent/QMUI_Android.git
synced 2026-10-29 11:37:07 +08:00
bugfix: setBackgroundAlpha() has a side effect to global resource
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user