mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 18:38:48 +00:00
StationsActivity: fix missing braces for an if-block
This commit is contained in:
parent
1c6dc66814
commit
d70d84b8b9
1 changed files with 2 additions and 1 deletions
|
@ -1496,11 +1496,12 @@ public class StationsActivity extends OeffiMainActivity implements StationsAware
|
||||||
try {
|
try {
|
||||||
final SuggestLocationsResult result = networkProvider.suggestLocations(query,
|
final SuggestLocationsResult result = networkProvider.suggestLocations(query,
|
||||||
EnumSet.of(LocationType.STATION), 0);
|
EnumSet.of(LocationType.STATION), 0);
|
||||||
if (result.status == SuggestLocationsResult.Status.OK)
|
if (result.status == SuggestLocationsResult.Status.OK) {
|
||||||
log.info("Got {}", result.toShortString());
|
log.info("Got {}", result.toShortString());
|
||||||
for (final Location l : result.getLocations())
|
for (final Location l : result.getLocations())
|
||||||
if (l.type == LocationType.STATION)
|
if (l.type == LocationType.STATION)
|
||||||
stations.add(new Station(network, l));
|
stations.add(new Station(network, l));
|
||||||
|
}
|
||||||
} catch (final IOException x) {
|
} catch (final IOException x) {
|
||||||
x.printStackTrace();
|
x.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue