Merge "Announce upcoming tile state on click." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
293c967667
@@ -154,9 +154,9 @@ public class QSTileBaseView extends LinearLayout {
|
|||||||
event.setClassName(mAccessibilityClass);
|
event.setClassName(mAccessibilityClass);
|
||||||
if (Switch.class.getName().equals(mAccessibilityClass)) {
|
if (Switch.class.getName().equals(mAccessibilityClass)) {
|
||||||
String label = getResources()
|
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.setContentDescription(label);
|
||||||
event.setChecked(mTileState);
|
event.setChecked(!mTileState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user