aboutsummaryrefslogtreecommitdiff
path: root/src/net/cbaines
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2012-03-07 21:40:46 +0000
committerChristopher Baines <cbaines8@gmail.com>2012-03-07 21:40:46 +0000
commitbd182a85a91205bc19c92e8b1ac8d208caa286ad (patch)
tree765a50414849739e3d9d163480a010bc43b4ecaa /src/net/cbaines
parent39600767cb32b65e4e3495dc996b3af6d9fae52c (diff)
downloadsouthamptonuniversitymap-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.java2
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) {