Fix bug with search
This commit is contained in:
parent
c111a77018
commit
084e5da3d3
1 changed files with 6 additions and 5 deletions
|
@ -257,11 +257,6 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
public void onTextChanged(CharSequence s, int start, int before, int count) {
|
||||
}
|
||||
});
|
||||
if(isNameFinderFilter()){
|
||||
searchFilterLayout.setVisibility(View.VISIBLE);
|
||||
} else if(isSearchByNameFilter() ){
|
||||
searchFilterLayout.setVisibility(View.VISIBLE);
|
||||
}
|
||||
addFooterView();
|
||||
amenityAdapter = new AmenityAdapter(new ArrayList<Amenity>());
|
||||
setListAdapter(amenityAdapter);
|
||||
|
@ -329,6 +324,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
searchNearBy = true;
|
||||
}
|
||||
|
||||
|
||||
String filterId = bundle.getString(AMENITY_FILTER);
|
||||
PoiFilter filter = app.getPoiFilters().getFilterById(filterId);
|
||||
if (filter != this.filter) {
|
||||
|
@ -357,6 +353,11 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
}
|
||||
updateLocation(location);
|
||||
}
|
||||
if(isNameFinderFilter()){
|
||||
searchFilterLayout.setVisibility(View.VISIBLE);
|
||||
} else if(isSearchByNameFilter() ){
|
||||
searchFilterLayout.setVisibility(View.VISIBLE);
|
||||
}
|
||||
app.getLocationProvider().addCompassListener(this);
|
||||
app.getLocationProvider().registerOrUnregisterCompassListener(true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue