Skip to content
Snippets Groups Projects
Commit 293c9676 authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Announce upcoming tile state on click." into nyc-dev

parents 7730e57d d8834773
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment