Merge "PopupContainerWithArrow accepting bubbletextview without icon being set." into ub-launcher3-dorval-polish
This commit is contained in:
committed by
Android (Google) Code Review
commit
293fba031e
@@ -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