summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-07-27 15:17:14 -0400
committerJason Monk <jmonk@google.com>2015-07-27 15:17:14 -0400
commitfc2506255f4cec5c42dc6cd0198147fd5ed349ca (patch)
tree173a65208462012be334e496958b1e38ba0cbe40 /packages
parenta7bdace2627cb4cd55ac7c182d9e093b3a1ffb7b (diff)
downloadframeworks_base-fc2506255f4cec5c42dc6cd0198147fd5ed349ca.zip
frameworks_base-fc2506255f4cec5c42dc6cd0198147fd5ed349ca.tar.gz
frameworks_base-fc2506255f4cec5c42dc6cd0198147fd5ed349ca.tar.bz2
Fix QS switch accessibility problem
Set the switch state so it can be read back correctly. Bug: 22710906 Change-Id: I2bcba96e53813118eb2be8dcb7e0b7d547767550
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarHeaderView.java4
1 files changed, 3 insertions, 1 deletions
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);
}
});
}