Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 081a9162 authored by Lifu Tang's avatar Lifu Tang Committed by Android (Google) Code Review
Browse files

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

parents 31584ec3 b18e2423
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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() {