Fix compilation

This commit is contained in:
Victor Shcherb 2016-03-28 15:44:54 +02:00
parent f8c459146b
commit a580d65604
2 changed files with 3 additions and 2 deletions

View file

@ -178,7 +178,8 @@ public class ContextMenuAdapter {
}
});
}
if (convertView == null || (layoutId != convertView.getTag())) {
if (convertView == null || !(convertView.getTag() instanceof Integer)
|| (layoutId != (Integer)convertView.getTag())) {
convertView = LayoutInflater.from(getContext()).inflate(layoutId, parent, false);
convertView.setTag(layoutId);
}

View file

@ -630,7 +630,7 @@ public class RouteInfoWidgetsFactory {
boolean imminent = false;
private Context ctx;
private ArrayList<Path> paths = new ArrayList<Path>();
private Map<TurnPathHelper.TurnResource, Bitmap> bitmapCache = new ArrayMap<TurnPathHelper.TurnResource, Bitmap>();
private Map<TurnPathHelper.TurnResource, Bitmap> bitmapCache = new HashMap<TurnPathHelper.TurnResource, Bitmap>();
private Paint paintBlack;
private Path laneStraight;
private final Bitmap laneStraightBitmap;