Skip to content

Commit

Permalink
[library] Make local variable final in setSelectionFromOffset()
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasr committed Mar 6, 2013
1 parent 187d9f7 commit 4d44c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/org/lucasr/twowayview/TwoWayView.java
Original file line number Diff line number Diff line change
Expand Up @@ -3653,7 +3653,7 @@ private View fillFromSelection(int selectedTop, int start, int end) {
private void correctTooHigh(int childCount) {
// First see if the last item is visible. If it is not, it is OK for the
// top of the list to be pushed up.
int lastPosition = mFirstPosition + childCount - 1;
final int lastPosition = mFirstPosition + childCount - 1;
if (lastPosition != mItemCount - 1 || childCount == 0) {
return;
}
Expand Down

0 comments on commit 4d44c37

Please sign in to comment.