TripsGalleryAdapter: Fix possible imprecision.

This commit is contained in:
Andreas Schildbach 2021-02-05 18:24:49 +01:00
parent 6677572cb3
commit 619cb33b55

View file

@ -167,7 +167,7 @@ public final class TripsGalleryAdapter extends BaseAdapter {
if (timeDiff == 0)
return minTime;
return (time - minTime) * height / timeDiff;
return (time - minTime) * height / (float) timeDiff;
}
public View getView(final int position, View view, final ViewGroup parent) {