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
This commit is contained in:
Gustav Sennton
2019-04-23 17:30:18 +01:00
parent 2a4e6f6e2d
commit 8a1869fa8d

View File

@@ -2640,7 +2640,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
private int getHeadsUpHeight() {
return mPrivateLayout.getHeadsUpHeight();
return getShowingLayout().getHeadsUpHeight();
}
public boolean areGutsExposed() {