Merge "Announce upcoming tile state on click." into nyc-dev am: 293c967667 am: 0a5b17a1dc
am: 4181eeddff
* commit '4181eeddff1e31c3d90c72d4c4f98ecb46e6db46':
Announce upcoming tile state on click.
Change-Id: Ic84d76bc5f5403ede1c10f3f80af0ae3a27e3150
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