[android] - attribtuion anchor point calculation fix for short text with full logo on a MapSnapshot (#10558)

This commit is contained in:
Tobrun
2017-11-29 12:21:54 +01:00
committed by GitHub
parent a1f207b090
commit 8cebab09ba

View File

@@ -62,7 +62,7 @@ public class AttributionMeasure {
float width = measure.getLogoContainerWidth() + measure.getTextViewShortContainerWidth();
boolean fitBounds = width <= measure.getMaxSizeShort();
if (fitBounds) {
PointF anchor = calculateAnchor(measure.snapshot, measure.textView, measure.margin);
PointF anchor = calculateAnchor(measure.snapshot, measure.textViewShort, measure.margin);
return new AttributionLayout(measure.logo, anchor, true);
}
return null;