Fix NPE when updating gear vertical location

Since we do this onLayout it's unnecessary to update the location here
plus it causes an NPE as the parent may not be laid out yet when
accessing collapsed height.

Bug: 28390732
Change-Id: I3e61eb7ce854002def3342856557d456249e5e26
This commit is contained in:
Mady Mellor
2016-04-27 08:45:53 -07:00
committed by Daniel Sandler
parent f71d7feef2
commit 5f88f9b355

View File

@@ -263,9 +263,6 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
int headsUpheight = headsUpCustom && beforeN ? mMaxHeadsUpHeightLegacy
: mMaxHeadsUpHeight;
layout.setHeights(minHeight, headsUpheight, mNotificationMaxHeight);
if (mSettingsIconRow != null) {
mSettingsIconRow.updateVerticalLocation();
}
}
public StatusBarNotification getStatusBarNotification() {