Merge "Add ellipsis to dnd notification settings" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c8aae85e06
@@ -18,6 +18,7 @@ package com.android.settings.widget;
|
|||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
|
import android.text.TextUtils;
|
||||||
import android.util.AttributeSet;
|
import android.util.AttributeSet;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@@ -95,6 +96,7 @@ public class DisabledCheckBoxPreference extends CheckBoxPreference {
|
|||||||
if (title != null) {
|
if (title != null) {
|
||||||
title.setSingleLine(false);
|
title.setSingleLine(false);
|
||||||
title.setMaxLines(2);
|
title.setMaxLines(2);
|
||||||
|
title.setEllipsize(TextUtils.TruncateAt.END);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user