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

Commit 08de5537 authored by Beverly's avatar Beverly Committed by android-build-merger
Browse files

Merge "Allow up two lines of text on dnd restrict notif" into qt-dev

am: f0924515

Change-Id: I159f4c670c2a103fe5c3fdb87e62e0e21a42bc5b
parents 87bdcd3c f0924515
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

import androidx.preference.CheckBoxPreference;
import androidx.preference.PreferenceViewHolder;
@@ -89,6 +90,12 @@ public class DisabledCheckBoxPreference extends CheckBoxPreference {
        mCheckBox = holder.findViewById(android.R.id.checkbox);

        enableCheckbox(mEnabledCheckBox);

        TextView title = (TextView) holder.findViewById(android.R.id.title);
        if (title != null) {
            title.setSingleLine(false);
            title.setMaxLines(2);
        }
    }

    @Override