aboutsummaryrefslogtreecommitdiff
path: root/src/net/cbaines/suma/StopView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/cbaines/suma/StopView.java')
-rw-r--r--src/net/cbaines/suma/StopView.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/net/cbaines/suma/StopView.java b/src/net/cbaines/suma/StopView.java
index afe8664..9a0dcd3 100644
--- a/src/net/cbaines/suma/StopView.java
+++ b/src/net/cbaines/suma/StopView.java
@@ -131,8 +131,7 @@ public class StopView extends LinearLayout implements OnClickListener, OnLongCli
busDao.refresh(stop.bus);
busRouteDao.refresh(stop.bus.route);
- Log.i("StopView", "Bus route " + stop.bus.route + " Uni-Link " + stop.bus.route.uniLink + " Bus ID "
- + stop.bus.id);
+ Log.i("StopView", "Bus route " + stop.bus.route + " Uni-Link " + stop.bus.route.uniLink + " Bus ID " + stop.bus.id);
if (stop.bus.id != null && stop.bus.route.uniLink) {
Uri uri = Uri.parse("http://id.southampton.ac.uk/bus/" + stop.bus.id);
@@ -143,8 +142,8 @@ public class StopView extends LinearLayout implements OnClickListener, OnLongCli
} else {
if (!stop.bus.route.uniLink) {
if (context.activityToast == null) {
- context.activityToast = Toast.makeText(context,
- "Bus schedules only avalible for Uni-Link buses", Toast.LENGTH_SHORT);
+ context.activityToast = Toast.makeText(context, "Bus schedules only avalible for Uni-Link buses",
+ Toast.LENGTH_SHORT);
} else {
context.activityToast.setText("Bus schedules only avalible for Uni-Link buses");
context.activityToast.setDuration(Toast.LENGTH_SHORT);
@@ -152,8 +151,8 @@ public class StopView extends LinearLayout implements OnClickListener, OnLongCli
context.activityToast.show();
} else {
if (context.activityToast == null) {
- context.activityToast = Toast.makeText(context,
- "Bus schedules not avalible for unidentified buses", Toast.LENGTH_SHORT);
+ context.activityToast = Toast.makeText(context, "Bus schedules not avalible for unidentified buses",
+ Toast.LENGTH_SHORT);
} else {
context.activityToast.setText("Bus schedules not avalible for unidentified buses");
context.activityToast.setDuration(Toast.LENGTH_SHORT);