Small improvement

This commit is contained in:
M66B
2021-03-26 09:23:50 +01:00
parent 352a597eeb
commit 696950374f
3 changed files with 8 additions and 4 deletions

View File

@@ -96,8 +96,10 @@ public class ActivityWidget extends ActivityBase {
cbSemiTransparent.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
btnColor.setColor(Color.TRANSPARENT);
setBackground();
if (isChecked) {
btnColor.setColor(Color.TRANSPARENT);
setBackground();
}
}
});