StationsActivity: fix missing braces for an if-block

This commit is contained in:
Andreas Schildbach 2022-09-12 11:24:37 +02:00
parent 1c6dc66814
commit d70d84b8b9

View file

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