mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 00:08:49 +00:00
Navitia: Use default style for unknown products in getLineStyle().
This commit is contained in:
parent
40cff03e47
commit
389ec22b6a
2 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ public class FrenchSouthWestProvider extends AbstractNavitiaProvider
|
|||
return new Style(Shape.ROUNDED, Style.parseColor(color), computeForegroundColor(color));
|
||||
}
|
||||
default:
|
||||
throw new IllegalArgumentException("Unhandled product: " + product);
|
||||
return super.getLineStyle(product, code, color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ public class ParisProvider extends AbstractNavitiaProvider
|
|||
return new Style(Shape.ROUNDED, Style.parseColor(color), computeForegroundColor(color));
|
||||
}
|
||||
default:
|
||||
throw new IllegalArgumentException("Unhandled product: " + product);
|
||||
return super.getLineStyle(product, code, color);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue