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

Commit c42291ff authored by Yuri Lin's avatar Yuri Lin Committed by Android (Google) Code Review
Browse files

Merge "Add a isCheckbox() function to SelectorWithWidgetPreference."

parents 39974daa bbf570eb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -191,6 +191,13 @@ public class SelectorWithWidgetPreference extends CheckBoxPreference {
                ? View.VISIBLE : View.GONE);
    }

    /**
     * Returns whether this preference is a checkbox.
     */
    public boolean isCheckBox() {
        return mIsCheckBox;
    }

    private void init() {
        if (mIsCheckBox) {
            setWidgetLayoutResource(R.layout.preference_widget_checkbox);