commit | c80fdb11f55f4c1f3ca9b5cdc7035afa2a0b9e91 | [log] [tgz] |
---|---|---|
author | Selim Cinek <cinek@google.com> | Mon Apr 13 15:09:08 2015 -0700 |
committer | Selim Cinek <cinek@google.com> | Wed Apr 15 12:58:40 2015 -0700 |
tree | fa0afa3b4926005634de488b5ad515b3eb3b0f37 | |
parent | 1f3f544f21cab3728f749ab66cd6859e9dfcf389 [diff] |
Fixed a bug where the intrinsic height was not updated Change-Id: I2c171aff6eb30418121f0ca77e71045b0b61c9b2
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index fa1ec0f..33a07d9 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java
@@ -181,8 +181,12 @@ } public void setHeadsUp(boolean isHeadsUp) { + int intrinsicBefore = getIntrinsicHeight(); mIsHeadsUp = isHeadsUp; mPrivateLayout.setHeadsUp(isHeadsUp); + if (intrinsicBefore != getIntrinsicHeight()) { + notifyHeightChanged(false /* needsAnimation */); + } } public void setGroupManager(NotificationGroupManager groupManager) {