Merge "Allow up two lines of text on dnd restrict notif" into qt-dev am: f09245150d
am: 08de5537ef
Change-Id: Ibe64d01921a30d9538af0641c01a68112d12657d
This commit is contained in:
@@ -20,6 +20,7 @@ import android.content.Context;
|
|||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
import androidx.preference.CheckBoxPreference;
|
import androidx.preference.CheckBoxPreference;
|
||||||
import androidx.preference.PreferenceViewHolder;
|
import androidx.preference.PreferenceViewHolder;
|
||||||
@@ -89,6 +90,12 @@ public class DisabledCheckBoxPreference extends CheckBoxPreference {
|
|||||||
mCheckBox = holder.findViewById(android.R.id.checkbox);
|
mCheckBox = holder.findViewById(android.R.id.checkbox);
|
||||||
|
|
||||||
enableCheckbox(mEnabledCheckBox);
|
enableCheckbox(mEnabledCheckBox);
|
||||||
|
|
||||||
|
TextView title = (TextView) holder.findViewById(android.R.id.title);
|
||||||
|
if (title != null) {
|
||||||
|
title.setSingleLine(false);
|
||||||
|
title.setMaxLines(2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user