From 8a1869fa8d86abfb9ebe9eb94d64d99507191fea Mon Sep 17 00:00:00 2001 From: Gustav Sennton Date: Tue, 23 Apr 2019 17:30:18 +0100 Subject: 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 --- .../systemui/statusbar/notification/row/ExpandableNotificationRow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3-59-g8ed1b