mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 12:39:49 +00:00
fix line colors
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@42 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
51f6d38d57
commit
6af2a24deb
6 changed files with 41 additions and 6 deletions
|
@ -333,7 +333,7 @@ public class SbbProvider implements NetworkProvider
|
|||
throw new IllegalStateException("cannot normalize line " + line);
|
||||
}
|
||||
|
||||
public static final Map<Character, int[]> LINES = new HashMap<Character, int[]>();
|
||||
private static final Map<Character, int[]> LINES = new HashMap<Character, int[]>();
|
||||
|
||||
static
|
||||
{
|
||||
|
@ -345,4 +345,9 @@ public class SbbProvider implements NetworkProvider
|
|||
LINES.put('B', new int[] { Color.parseColor("#993399"), Color.WHITE });
|
||||
LINES.put('F', new int[] { Color.BLUE, Color.WHITE });
|
||||
}
|
||||
|
||||
public int[] lineColors(final String line)
|
||||
{
|
||||
return LINES.get(line.charAt(0));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue