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

am: 293c967667

* commit '293c96766727517b5a94008a43d308a6d990faea':
  Announce upcoming tile state on click.

Change-Id: Ied45168428e0b1945ce6613ff0be40666c1f97dc
This commit is contained in:
Julia Reynolds
2016-05-27 16:59:32 +00:00
committed by android-build-merger

View File

@@ -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);
}
}
}