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

Commit 4ef1da3c authored by Daniel Lehmann's avatar Daniel Lehmann
Browse files

Perform a float division for screenTravelCount

Change-Id: Ie0f23344a26c7ecf1a641e60d649ad0fc54fecbf
parent db4c91ff
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);