mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
352a597eeb
commit
696950374f
|
@ -96,9 +96,11 @@ public class ActivityWidget extends ActivityBase {
|
||||||
cbSemiTransparent.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
cbSemiTransparent.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||||
|
if (isChecked) {
|
||||||
btnColor.setColor(Color.TRANSPARENT);
|
btnColor.setColor(Color.TRANSPARENT);
|
||||||
setBackground();
|
setBackground();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
btnColor.setOnClickListener(new View.OnClickListener() {
|
btnColor.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
|
@ -69,6 +69,7 @@ public class ActivityWidgetSync extends ActivityBase {
|
||||||
cbSemiTransparent.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
cbSemiTransparent.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||||
|
if (isChecked)
|
||||||
btnColor.setColor(Color.TRANSPARENT);
|
btnColor.setColor(Color.TRANSPARENT);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -103,6 +103,7 @@ public class ActivityWidgetUnified extends ActivityBase {
|
||||||
cbSemiTransparent.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
cbSemiTransparent.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||||
|
if (isChecked)
|
||||||
btnColor.setColor(Color.TRANSPARENT);
|
btnColor.setColor(Color.TRANSPARENT);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue