From fc2506255f4cec5c42dc6cd0198147fd5ed349ca Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Mon, 27 Jul 2015 15:17:14 -0400 Subject: Fix QS switch accessibility problem Set the switch state so it can be read back correctly. Bug: 22710906 Change-Id: I2bcba96e53813118eb2be8dcb7e0b7d547767550 --- .../src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java index 5d58cd0..7ee47df 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java @@ -789,7 +789,9 @@ public class StatusBarHeaderView extends RelativeLayout implements View.OnClickL mQsDetailHeader.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { - detail.setToggleState(!mQsDetailHeaderSwitch.isChecked()); + boolean checked = !mQsDetailHeaderSwitch.isChecked(); + mQsDetailHeaderSwitch.setChecked(checked); + detail.setToggleState(checked); } }); } -- cgit v1.1