/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/DepartureListAdapter.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/DepartureListAdapter.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 482 by torben, Mon Sep 28 21:39:49 2009 UTC revision 483 by torben, Thu Oct 29 10:49:14 2009 UTC
# Line 60  public class DepartureListAdapter extend Line 60  public class DepartureListAdapter extend
60                                    
61                  if (station.getStatus().length() > 0 || station.getNote().length() > 0) {                  if (station.getStatus().length() > 0 || station.getNote().length() > 0) {
62                          ImageView image = (ImageView) root.findViewById(R.id.InfoIcon);                          ImageView image = (ImageView) root.findViewById(R.id.InfoIcon);
63                          image.setImageResource(R.drawable.info20);                          
64                            int iconID;
65                            if (station.getStatus().toLowerCase().indexOf("aflyst") > -1 ||
66                                            station.getNote().toLowerCase().indexOf("aflyst") > -1 ) {
67                                    iconID = R.drawable.warn20;
68                            } else {
69                                    iconID = R.drawable.info20;
70                            }
71                                    
72                            image.setImageResource( iconID );
73                  }                  }
74                                    
75                  ImageView typeIcon = (ImageView) root.findViewById(R.id.TypeIcon);                  ImageView typeIcon = (ImageView) root.findViewById(R.id.TypeIcon);

Legend:
Removed from v.482  
changed lines
  Added in v.483

  ViewVC Help
Powered by ViewVC 1.1.20