fixed lost line attributes in departures

This commit is contained in:
Andreas Schildbach 2012-10-06 21:25:44 +02:00
parent 786d29ffc7
commit f98e87783e
2 changed files with 7 additions and 2 deletions

View file

@ -707,7 +707,12 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
if (classChar == 0)
throw new IllegalArgumentException();
// could check for type consistency here
line = newLine(classChar, prodLine.label.substring(1));
final String lineName = prodLine.label.substring(1);
if (prodLine.attrs != null)
line = newLine(classChar, lineName, prodLine.attrs.toArray(new Line.Attr[0]));
else
line = newLine(classChar, lineName);
}
else
{

View file

@ -36,7 +36,7 @@ public final class Line implements Serializable, Comparable<Line>
final private transient char product; // TODO make true field
final public String label;
final public Style style;
final private Set<Attr> attrs;
final public Set<Attr> attrs;
private static final String PRODUCT_ORDER = "IRSUTBPFC?";