StationsActivity: Stop progress indicator when failing to query for nearby stations too.

This commit is contained in:
Andreas Schildbach 2020-09-18 10:17:12 +02:00
parent ecfe4b9d17
commit 004fda9b6f

View file

@ -800,14 +800,14 @@ public class StationsActivity extends OeffiMainActivity implements StationsAware
runOnUiThread(() -> mergeIntoStations(freshStations, true));
}
} catch (final IOException x) {
log.info("IO problem while querying for nearby locations to " + referenceLocation, x);
} finally {
runOnUiThread(() -> {
actionBar.stopProgress();
loading = false;
updateGUI();
});
} catch (final IOException x) {
log.info("IO problem while querying for nearby locations to " + referenceLocation, x);
}
});
}