Perform a float division for screenTravelCount
Change-Id: Ie0f23344a26c7ecf1a641e60d649ad0fc54fecbf
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user