Set switch to the correct enabling state

- Fix b/16951708

Change-Id: I4f9a2a374a771fd353fca436a0d34644f9bc8320
This commit is contained in:
Lifu Tang
2014-08-18 16:46:48 -07:00
parent f14fa7ed4e
commit b18e242366

View File

@@ -124,7 +124,7 @@ public class SwitchBar extends LinearLayout implements CompoundButton.OnCheckedC
public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
mTextView.setEnabled(enabled);
mSwitch.setEnabled(false);
mSwitch.setEnabled(enabled);
}
public final ToggleSwitch getSwitch() {