am 081a9162: Merge "Set switch to the correct enabling state" into lmp-dev

* commit '081a9162c959f9cbd0cbd76674501cdb47d516a7':
  Set switch to the correct enabling state
This commit is contained in:
Lifu Tang
2014-08-19 04:29:17 +00:00
committed by Android Git Automerger

View File

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