Merge "Announce upcoming tile state on click." into nyc-dev am: 293c967667
am: 4d55281b08
* commit '4d55281b08011f8f75fea65710c8edfef17a5bed':
Announce upcoming tile state on click.
Change-Id: Ie968e8df6e3f6d422c7286b0a686d0e4a292c143
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