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); |