Merge "Add content description to the master switch toggle button." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
10158feecf
@@ -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