commit | a3d3b91a6eb1db65b52f12442973a1820754c8c0 | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Tue Feb 02 11:22:06 2016 -0800 |
committer | Selim Cinek <cinek@google.com> | Wed Feb 03 20:29:36 2016 -0800 |
tree | a9ff0314c53d367f5e12e877e6affbb9daf5ad27 | |
parent | 2b39c4ccdf26300ab18af0b941ab5b3cf124fd13 [diff] [blame] |
Adapted the style of notification groups The title is now not using the spanned styling anymore and the overflow is divided differently. Also fixed the layout for RTL languagues and BIDI. Change-Id: I5963e1990fe0efefd0355fcaae249546cbb75181
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/HybridNotificationView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/HybridNotificationView.java index ec73935..81144d5 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/HybridNotificationView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/HybridNotificationView.java
@@ -107,12 +107,13 @@ public void bind(CharSequence title, CharSequence text) { mTitleView.setText(title); - if (TextUtils.isEmpty(title)) { - mTitleView.setVisibility(GONE); - } - mTextView.setText(text); + mTitleView.setVisibility(TextUtils.isEmpty(title) ? GONE : VISIBLE); if (TextUtils.isEmpty(text)) { mTextView.setVisibility(GONE); + mTextView.setText(null); + } else { + mTextView.setVisibility(VISIBLE); + mTextView.setText(text.toString()); } requestLayout(); }