Fix bugs
This commit is contained in:
parent
eb2d75d4ad
commit
3c2de4612e
1 changed files with 1 additions and 1 deletions
|
@ -300,13 +300,13 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
searchArea.setText(filter.getSearchArea());
|
||||
updateSearchPoiTextButton();
|
||||
if (searchNearBy) {
|
||||
app.getLocationProvider().addCompassListener(this);
|
||||
app.getLocationProvider().addLocationListener(this);
|
||||
location = app.getLocationProvider().getLastKnownLocation();
|
||||
app.getLocationProvider().resumeAllUpdates();
|
||||
}
|
||||
updateLocation(location);
|
||||
}
|
||||
app.getLocationProvider().addCompassListener(this);
|
||||
app.getLocationProvider().registerOrUnregisterCompassListener(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue