mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 06:08:51 +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 {
|
||||
final SuggestLocationsResult result = networkProvider.suggestLocations(query,
|
||||
EnumSet.of(LocationType.STATION), 0);
|
||||
if (result.status == SuggestLocationsResult.Status.OK)
|
||||
if (result.status == SuggestLocationsResult.Status.OK) {
|
||||
log.info("Got {}", result.toShortString());
|
||||
for (final Location l : result.getLocations())
|
||||
if (l.type == LocationType.STATION)
|
||||
stations.add(new Station(network, l));
|
||||
}
|
||||
} catch (final IOException x) {
|
||||
x.printStackTrace();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue