diff options
author | Christopher Baines <cbaines8@gmail.com> | 2012-03-07 21:40:46 +0000 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2012-03-07 21:40:46 +0000 |
commit | bd182a85a91205bc19c92e8b1ac8d208caa286ad (patch) | |
tree | 765a50414849739e3d9d163480a010bc43b4ecaa /src/net/cbaines | |
parent | 39600767cb32b65e4e3495dc996b3af6d9fae52c (diff) | |
download | southamptonuniversitymap-bd182a85a91205bc19c92e8b1ac8d208caa286ad.tar southamptonuniversitymap-bd182a85a91205bc19c92e8b1ac8d208caa286ad.tar.gz |
Fixed a bug stoping the last item from showing.
Diffstat (limited to 'src/net/cbaines')
-rw-r--r-- | src/net/cbaines/suma/BusActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/cbaines/suma/BusActivity.java b/src/net/cbaines/suma/BusActivity.java index 724b65f..ad41a6e 100644 --- a/src/net/cbaines/suma/BusActivity.java +++ b/src/net/cbaines/suma/BusActivity.java @@ -145,7 +145,7 @@ public class BusActivity extends ToastHelperActivity implements Preferences { public void run() { Log.v(TAG, "Refreshing data " + (System.currentTimeMillis() - timeOfLastRefresh)); timeOfLastRefresh = System.currentTimeMillis(); - for (int num = timetableView.getFirstVisiblePosition(); num < timetableView.getLastVisiblePosition(); num++) { + for (int num = timetableView.getFirstVisiblePosition(); num <= timetableView.getLastVisiblePosition(); num++) { final Stop stop = timetable.get(num); if (System.currentTimeMillis() - stop.timeOfFetch.getTime() > 20000) { |