Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37c9982c authored by Edgar Wang's avatar Edgar Wang
Browse files

Fix the initial background color of MainSwitchBar

we should check Switch.isChecked() status first.

Bug: 207431726
Test: manual & robotest
Change-Id: Ie748a88f7b05fc1047590b9a08e89115bfa2d535
parent 21684a25
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public class MainSwitchBar extends LinearLayout implements CompoundButton.OnChec
            a.recycle();
        }

        setBackground(true);
        setBackground(mSwitch.isChecked());
    }

    @Override