Merge "Set switch to the correct enabling state" into lmp-dev

This commit is contained in:
Lifu Tang
2014-08-19 04:24:09 +00:00
committed by Android (Google) Code Review

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() {