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

Commit a4f05509 authored by Chun-Ku Lin's avatar Chun-Ku Lin
Browse files

Allow setMaxTitleLines programmatically

Bug: 356726764
Bug: 413453264
Test: manually
Flag: EXEMPT BUGFIX
Change-Id: I6755346d95661c6a96acfbc38aca8edd1846c248
parent 50b767c1
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -268,4 +268,17 @@ public class SelectorWithWidgetPreference extends CheckBoxPreference {
    public View getExtraWidget() {
        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();
        }
    }
}