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

am: 10158feecf

Change-Id: Icc68b53cbbb93755c7ce90db1c4d2f70d5e44cd1
This commit is contained in:
Doris Ling
2017-04-28 19:34:34 +00:00
committed by android-build-merger
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);
}