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

Commit cf8347ad authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow setMaxTitleLines programmatically" into main

parents 7bc1879d a4f05509
Loading
Loading
Loading
Loading
+13 −0
Original line number Original line Diff line number Diff line
@@ -268,4 +268,17 @@ public class SelectorWithWidgetPreference extends CheckBoxPreference {
    public View getExtraWidget() {
    public View getExtraWidget() {
        return mExtraWidget;
        return mExtraWidget;
    }
    }


    /**
     * Sets the maximum number of lines for the title.
     *
     * @param titleMaxLines The maximum number of lines for the title.
     */
    public void setTitleMaxLines(int titleMaxLines) {
        if (titleMaxLines != mTitleMaxLines) {
            mTitleMaxLines = titleMaxLines;
            notifyChanged();
        }
    }
}
}