Merge "Add content description to the master switch toggle button." into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-28 19:24:10 +00:00
committed by Android (Google) Code Review
2 changed files with 16 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ public class MasterSwitchPreference extends TwoTargetPreference {
mSwitch = (Switch) holder.findViewById(R.id.switchWidget);
if (mSwitch != null) {
mSwitch.setContentDescription(getTitle());
mSwitch.setChecked(mChecked);
mSwitch.setEnabled(mEnableSwitch);
}