mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 06:08:51 +00:00
NearestFavoriteStationWidgetService: Be safe to use the best provider for determining location.
This commit is contained in:
parent
1b28d3f787
commit
6964f22f5a
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ public class NearestFavoriteStationWidgetService extends JobIntentService {
|
|||
log.info("Acquiring {} location", provider);
|
||||
|
||||
final SettableFuture<Location> future = SettableFuture.create();
|
||||
locationManager.requestSingleUpdate(criteria, new LocationListener() {
|
||||
locationManager.requestSingleUpdate(provider, new LocationListener() {
|
||||
public void onLocationChanged(final Location location) {
|
||||
future.set(location);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue