try fix alarms icon display

This commit is contained in:
sonora 2014-09-12 13:35:06 +02:00
parent ccba35aec5
commit b6a4aed6b1

View file

@ -670,8 +670,8 @@ public class WaypointHelper {
} else if(type == FAVORITES || type == WAYPOINTS) {
return FavoriteImageDrawable.getOrCreate(uiCtx, point.getColor());
} else if(type == ALARMS) {
if(RenderingIcons.containsBigIcon(((AlarmInfo) point).getType().toString())) {
return uiCtx.getResources().getDrawable(RenderingIcons.getBigIconResourceId(((AlarmInfo) point).getType().toString()));
if(RenderingIcons.containsBigIcon(((AlarmInfo) point).getType().toString().toLowerCase())) {
return uiCtx.getResources().getDrawable(RenderingIcons.getBigIconResourceId(((AlarmInfo) point).getType().toString().toLowerCase()));
} else {
return null;
}