mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 22:08:49 +00:00
OeffiMapView: Fix parameter order when invoking MeasureSpec.makeMeasureSpec().
This commit is contained in:
parent
0514ca2cc1
commit
b028cbba38
1 changed files with 4 additions and 4 deletions
|
@ -236,8 +236,8 @@ public class OeffiMapView extends MapView {
|
|||
|
||||
final LineView lineView = (LineView) inflater.inflate(R.layout.map_trip_line, null);
|
||||
lineView.setLine(publicLeg.line);
|
||||
lineView.measure(MeasureSpec.makeMeasureSpec(MeasureSpec.UNSPECIFIED, 0),
|
||||
MeasureSpec.makeMeasureSpec(MeasureSpec.UNSPECIFIED, 0));
|
||||
lineView.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
|
||||
MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
|
||||
final int width = lineView.getMeasuredWidth();
|
||||
final int height = lineView.getMeasuredHeight();
|
||||
lineView.layout(point.x - width / 2, point.y - height / 2, point.x + width / 2,
|
||||
|
@ -361,8 +361,8 @@ public class OeffiMapView extends MapView {
|
|||
bubble.setTypeface(Typeface.DEFAULT_BOLD);
|
||||
bubble.setTextSize(TypedValue.COMPLEX_UNIT_PX, stationFontSize);
|
||||
bubble.setIncludeFontPadding(false);
|
||||
bubble.measure(MeasureSpec.makeMeasureSpec(MeasureSpec.UNSPECIFIED, 0),
|
||||
MeasureSpec.makeMeasureSpec(MeasureSpec.UNSPECIFIED, 0));
|
||||
bubble.measure(MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
|
||||
MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
|
||||
final int width = bubble.getMeasuredWidth();
|
||||
final int height = bubble.getMeasuredHeight();
|
||||
bubble.layout(point.x - width / 2, point.y - height / 2, point.x + width / 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue