Fix the initial background color of MainSwitchBar

we should check Switch.isChecked() status first.

Bug: 207431726
Test: manual & robotest
Change-Id: Ie748a88f7b05fc1047590b9a08e89115bfa2d535
(cherry picked from commit 37c9982cb2d5f5402e74cd57e19eb0b552035cce)
1 file changed