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:
andreas.schildbach 2010-08-06 14:28:07 +00:00
parent 51f6d38d57
commit 6af2a24deb
6 changed files with 41 additions and 6 deletions

View file

@ -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));
}
}