diff options
author | Christopher Baines <cbaines8@gmail.com> | 2012-02-19 09:41:44 +0000 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2012-02-19 09:41:44 +0000 |
commit | bff738801d5a231806c42bcb06b1e187d120b5a9 (patch) | |
tree | 1ed698d5b742226a67fa52844a2fd72dea474ae9 /src/net/cbaines/suma/BusRoute.java | |
parent | 7bb198687abe16bc457c96b77dc07283b0340832 (diff) | |
download | southamptonuniversitymap-bff738801d5a231806c42bcb06b1e187d120b5a9.tar southamptonuniversitymap-bff738801d5a231806c42bcb06b1e187d120b5a9.tar.gz |
Fixed a bug with the MapActivity overlay toasts, and improved the BusStopActivity.
Diffstat (limited to 'src/net/cbaines/suma/BusRoute.java')
-rw-r--r-- | src/net/cbaines/suma/BusRoute.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/net/cbaines/suma/BusRoute.java b/src/net/cbaines/suma/BusRoute.java index 97309c4..4152605 100644 --- a/src/net/cbaines/suma/BusRoute.java +++ b/src/net/cbaines/suma/BusRoute.java @@ -21,6 +21,7 @@ package net.cbaines.suma; import java.sql.SQLException; import java.util.ArrayList; +import java.util.Calendar; import java.util.HashSet; import java.util.List; import java.util.Set; @@ -445,8 +446,14 @@ public class BusRoute { Log.e(TAG, "Error, unrecognised direction " + direction); } } else if (id == 354) { // U9 - startStopSeq = 1; - endStopSeq = 74; + Calendar rightNow = Calendar.getInstance(); + if (rightNow.get(Calendar.HOUR_OF_DAY) < 12) { + startStopSeq = 1; + endStopSeq = 40; // TODO: Guess, and untested + } else { + startStopSeq = 41; // TODO: Guess, and untested + endStopSeq = 74; + } } else { Log.e(TAG, "Error, unrecognised route " + id); } |