PopupContainerWithArrow accepting bubbletextview without icon being set.
Change-Id: I5f58c339c094b4a88adf27c2ecaa01ba052b2285
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user