Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fff98cd1 authored by Daniel Lehmann's avatar Daniel Lehmann Committed by Android (Google) Code Review
Browse files

Merge "Perform a float division for screenTravelCount"

parents 9a96e962 4ef1da3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3072,7 +3072,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
            }

            // Estimate how many screens we should travel
            final float screenTravelCount = viewTravelCount / childCount;
            final float screenTravelCount = (float) viewTravelCount / childCount;
            mScrollDuration = (int) (SCROLL_DURATION / screenTravelCount);
            mLastSeenPos = INVALID_POSITION;
            post(this);