Merge "Announce upcoming tile state on click." into nyc-dev am: 293c967667
am: 0a5b17a1dc
* commit '0a5b17a1dc70986009bdb3820a532a3394d9330e':
Announce upcoming tile state on click.
Change-Id: I1c195dfa715e9c1c615a23cc6f793a6db56bd4b9
This commit is contained in:
@@ -154,9 +154,9 @@ public class QSTileBaseView extends LinearLayout {
|
||||
event.setClassName(mAccessibilityClass);
|
||||
if (Switch.class.getName().equals(mAccessibilityClass)) {
|
||||
String label = getResources()
|
||||
.getString(mTileState ? R.string.switch_bar_on : R.string.switch_bar_off);
|
||||
.getString(!mTileState ? R.string.switch_bar_on : R.string.switch_bar_off);
|
||||
event.setContentDescription(label);
|
||||
event.setChecked(mTileState);
|
||||
event.setChecked(!mTileState);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user