diff options
| author | 2019-04-23 17:30:18 +0100 | |
|---|---|---|
| committer | 2019-04-23 17:30:18 +0100 | |
| commit | 8a1869fa8d86abfb9ebe9eb94d64d99507191fea (patch) | |
| tree | 64943fd9fdfd560028e7b013f4cbb11cf3eebbd0 | |
| parent | 2a4e6f6e2d0588baf5ce8006abf418dd0edbfa92 (diff) | |
Use correct heads-up notification height.
Before this change we would calculate heads-up notification height from
the notification private layout - which is incorrect in cases where the
private and the public layouts differ (e.g. when we have smart
suggestions in the notification showing in the private layout but not
the public one).
Bug: 128894557
Test: manual as per the bug.
Change-Id: I58d2b988402abcefe9c23aa74dd4f89ad953aed1
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java index efdcd053bc54..7e9edd305347 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java @@ -2640,7 +2640,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView private int getHeadsUpHeight() { - return mPrivateLayout.getHeadsUpHeight(); + return getShowingLayout().getHeadsUpHeight(); } public boolean areGutsExposed() { |