Perform a float division for screenTravelCount

Change-Id: Ie0f23344a26c7ecf1a641e60d649ad0fc54fecbf
This commit is contained in:
Daniel Lehmann
2010-08-27 16:40:59 -07:00
parent db4c91ff7b
commit 4ef1da3c04

View File

@@ -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);