Merge "Add content description to the master switch toggle button." into oc-dev am: 10158feecf
am: 79d8e5db66
Change-Id: Ied594a8096175ad340f246af3d467629df687bc1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user