Merge "PopupContainerWithArrow accepting bubbletextview without icon being set." into ub-launcher3-dorval-polish

This commit is contained in:
Mario Bertschler
2017-06-22 19:34:58 +00:00
committed by Android (Google) Code Review
@@ -459,7 +459,9 @@ public class PopupContainerWithArrow extends AbstractFloatingView implements Dra
x += mIsLeftAligned ? xOffset : -xOffset;
// Open above icon if there is room.
int iconHeight = icon.getIcon().getBounds().height();
int iconHeight = icon.getIcon() != null
? icon.getIcon().getBounds().height()
: icon.getHeight();
int y = mTempRect.top + icon.getPaddingTop() - height;
mIsAboveIcon = y > dragLayer.getTop() + insets.top;
if (!mIsAboveIcon) {