diff options
author | Jason Monk <jmonk@google.com> | 2015-02-05 23:07:41 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-05 23:07:41 +0000 |
commit | 41908a2faabdb9434532b89e8b4726d2a3d42c9c (patch) | |
tree | 72e07f88a9ba8406e053dd942beaf1fe7cfdc7f0 /packages/SystemUI/src/com/android/systemui/qs | |
parent | 688ecaa7b97f5c5eab9c092dbd2f816d8aa1425c (diff) | |
parent | ba87ba5e4cc929f34921ff9fa875c38eca2bc1d0 (diff) | |
download | frameworks_base-41908a2faabdb9434532b89e8b4726d2a3d42c9c.zip frameworks_base-41908a2faabdb9434532b89e8b4726d2a3d42c9c.tar.gz frameworks_base-41908a2faabdb9434532b89e8b4726d2a3d42c9c.tar.bz2 |
am ba87ba5e: am 3bbc5a11: Merge "Ellipsize QS detail items when needed" into lmp-mr1-dev automerge: 6d72d46
* commit 'ba87ba5e4cc929f34921ff9fa875c38eca2bc1d0':
Ellipsize QS detail items when needed
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSDetailItems.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSDetailItems.java b/packages/SystemUI/src/com/android/systemui/qs/QSDetailItems.java index 9155102..95ac558 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSDetailItems.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSDetailItems.java @@ -190,6 +190,7 @@ public class QSDetailItems extends FrameLayout { title.setText(item.line1); final TextView summary = (TextView) view.findViewById(android.R.id.summary); final boolean twoLines = !TextUtils.isEmpty(item.line2); + title.setMaxLines(twoLines ? 1 : 2); summary.setVisibility(twoLines ? VISIBLE : GONE); summary.setText(twoLines ? item.line2 : null); view.setMinimumHeight(mContext.getResources() .getDimensionPixelSize( |