mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-06 17:38:48 +00:00
TripsGalleryAdapter: Fix possible imprecision.
This commit is contained in:
parent
6677572cb3
commit
619cb33b55
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue