aboutsummaryrefslogtreecommitdiff
path: root/src/net/cbaines/suma/BusStopActivity.java
diff options
context:
space:
mode:
authorChristopher Baines <cbaines8@gmail.com>2012-02-13 07:44:37 +0000
committerChristopher Baines <cbaines8@gmail.com>2012-02-13 07:44:37 +0000
commit2ada92db0a557de0cb1b169534e3207582b44ec9 (patch)
tree4551e1ccd8da874ca75dcd49ca3cf80a0b870e91 /src/net/cbaines/suma/BusStopActivity.java
parent6da7d86db934fcaf5877b725481c164b5321c2ca (diff)
downloadsouthamptonuniversitymap-2ada92db0a557de0cb1b169534e3207582b44ec9.tar
southamptonuniversitymap-2ada92db0a557de0cb1b169534e3207582b44ec9.tar.gz
Added route labels to the POIView, and some more improvements in the preferences system.
Diffstat (limited to 'src/net/cbaines/suma/BusStopActivity.java')
-rw-r--r--src/net/cbaines/suma/BusStopActivity.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net/cbaines/suma/BusStopActivity.java b/src/net/cbaines/suma/BusStopActivity.java
index 4c9ce52..52f1b92 100644
--- a/src/net/cbaines/suma/BusStopActivity.java
+++ b/src/net/cbaines/suma/BusStopActivity.java
@@ -170,7 +170,7 @@ public class BusStopActivity extends OrmLiteBaseActivity<DatabaseHelper> impleme
} else {
U9RouteRadioButton.setVisibility(View.GONE);
}
- }
+ }
}
busStopDao = helper.getBusStopDao();
@@ -309,6 +309,12 @@ public class BusStopActivity extends OrmLiteBaseActivity<DatabaseHelper> impleme
} catch (JSONException e) {
errorMessage = "Error parsing bus times";
e.printStackTrace();
+ } catch (Exception e) {
+ if (THROW_ERROR_ON_EXCEPTION) {
+ throw new RuntimeException(e.getMessage());
+ } else {
+ Log.e(TAG, e.getMessage());
+ }
}
return newTimetable;
}