Set switch to the correct enabling state
- Fix b/16951708 Change-Id: I4f9a2a374a771fd353fca436a0d34644f9bc8320
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user