diff options
| author | Selim Cinek <cinek@google.com> | 2015-12-04 13:04:22 -0800 |
|---|---|---|
| committer | Selim Cinek <cinek@google.com> | 2015-12-08 16:25:00 -0800 |
| commit | 7a7c63ab35c101f6dfcfd57b19354d534eec6241 (patch) | |
| tree | 10f8e9a02faf2140edb6453f7bff36fad6849a2a /core/java/android/view/NotificationHeaderView.java | |
| parent | a53f85a59aebfc1dc0d7c25f33c48240fca4fca8 (diff) | |
Fixed a small measuring but with the notification header
Change-Id: I64e3504516110f245624b037e534d208d57d8250
Diffstat (limited to 'core/java/android/view/NotificationHeaderView.java')
| -rw-r--r-- | core/java/android/view/NotificationHeaderView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/NotificationHeaderView.java b/core/java/android/view/NotificationHeaderView.java index d4ccdbf4235c..93e11af7e78b 100644 --- a/core/java/android/view/NotificationHeaderView.java +++ b/core/java/android/view/NotificationHeaderView.java @@ -100,7 +100,7 @@ public class NotificationHeaderView extends LinearLayout { int overFlow = totalWidth - givenWidth; // We are overflowing, lets shrink final int appWidth = mAppName.getMeasuredWidth(); - if (appWidth > mHeaderMinWidth) { + if (mAppName.getVisibility() != GONE && appWidth > mHeaderMinWidth) { int newSize = appWidth - Math.min(appWidth - mHeaderMinWidth, overFlow); int childWidthSpec = MeasureSpec.makeMeasureSpec(newSize, MeasureSpec.AT_MOST); mAppName.measure(childWidthSpec, wrapContentHeightSpec); |
