Add ellipsis to dnd notification settings

To indicate there's more text than showing.

Test: manual
Fixes: 152901378
Change-Id: Iefb688b07a301be09e0ab747429d2b99b49ea1a6
This commit is contained in:
Beverly
2020-04-07 16:09:59 -04:00
committed by Beverly Tai
parent 23040a3b2b
commit 56a7e26e90

View File

@@ -18,6 +18,7 @@ package com.android.settings.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
@@ -95,6 +96,7 @@ public class DisabledCheckBoxPreference extends CheckBoxPreference {
if (title != null) {
title.setSingleLine(false);
title.setMaxLines(2);
title.setEllipsize(TextUtils.TruncateAt.END);
}
}