--- android/TrainInfo/src/dk/thoerup/traininfo/DepartureListAdapter.java 2009/10/29 19:50:02 491 +++ android/TrainInfo/src/dk/thoerup/traininfo/DepartureListAdapter.java 2010/01/22 11:28:56 546 @@ -70,10 +70,14 @@ if (station.getStatus().length() > 0 || station.getNote().length() > 0) { ImageView image = (ImageView) root.findViewById(R.id.InfoIcon); + String status = station.getStatus().toLowerCase(); + String note = station.getNote().toLowerCase(); + int iconID; - if (station.getStatus().toLowerCase().indexOf("aflyst") > -1 || - station.getNote().toLowerCase().indexOf("aflyst") > -1 ) { + if (status.indexOf("aflyst") > -1 || note.indexOf("aflyst") > -1 ) { iconID = R.drawable.warn20; + } else if (note.indexOf("kører kun til") > -1 || note.indexOf("afgår fra") > -1) { //If these strings are present, the train only covers part of the line + iconID = R.drawable.warnyellow20; } else { iconID = R.drawable.info20; } @@ -104,6 +108,7 @@ imageMap.put("ør", R.drawable.or); //ØR = Øresundstog imageMap.put("ec", R.drawable.ec); //EC = EuroCity imageMap.put("sj", R.drawable.sj); // SJ=Svenska Jernbaner + imageMap.put("ie", R.drawable.ie); imageMap.put("a", R.drawable.stog_a); //S-Tog: A banen #00b5f1 imageMap.put("b", R.drawable.stog_b); //S-Tog:B banen #5aba52