mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-09 08:38:49 +00:00
NetworkProviderFactory: Don't use HTTPS for OEBB on old devices.
This commit is contained in:
parent
6222597ef0
commit
3b9c07e186
1 changed files with 5 additions and 1 deletions
|
@ -172,7 +172,11 @@ public final class NetworkProviderFactory {
|
|||
else if (networkId.equals(NetworkId.VVV))
|
||||
return new VvvProvider();
|
||||
else if (networkId.equals(NetworkId.OEBB))
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
|
||||
return new OebbProvider("{\"type\":\"AID\",\"aid\":\"OWDL4fE4ixNiPBBm\"}");
|
||||
else
|
||||
return new OebbProvider(HttpUrl.parse("http://fahrplan.oebb.at/bin/"), "{\"type\":\"AID\"," +
|
||||
"\"aid\":\"OWDL4fE4ixNiPBBm\"}");
|
||||
else if (networkId.equals(NetworkId.WIEN))
|
||||
return new WienProvider();
|
||||
else if (networkId.equals(NetworkId.LINZ))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue