Permalink
Browse files

Abbreviate pulled route names to prevent ugly text wrapping

  • Loading branch information...
seansouthern committed Dec 6, 2012
1 parent 1d7f7a9 commit a1d5a835cc124a0578217383b7e61e804f8b622e
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/com/seansouthern/anchoragebustimes/map.java
@@ -556,11 +556,14 @@ protected void onPostExecute(Document page){
TextView tv = new TextView(context);
// Abbreviate long Route Names to prevent row overflow
- if(src.text().equals("WEST ANCHORAGE/U-MED")){
- tv.setText("WEST ANCH/U-MED");
+ if(src.text().equals("36 WEST ANCHORAGE- U-MED")){
+ tv.setText("36 WEST ANCH/U-MED");
}
- else if(src.text().equals("UNIVERSITY/HOSPITALS")){
- tv.setText("UAA/HOSPITALS");
+ else if(src.text().equals("13 UNIVERSITY - HOSPITALS")){
+ tv.setText("36 UAA/HOSPITALS");
+ }
+ else if(src.text().equals("102 EAGLE RIVER-CHUGIAK")){
+ tv.setText("102 EAGLE RIVER");
}
else{
tv.setText(src.text());

0 comments on commit a1d5a83

Please sign in to comment.