Revert icons
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 3.3 KiB |
BIN
OsmAnd/res/drawable-hdpi/list_activities_favorites_h.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 838 B After Width: | Height: | Size: 866 B |
BIN
OsmAnd/res/drawable-hdpi/list_activities_set_destination_h.png
Normal file
After Width: | Height: | Size: 838 B |
Before Width: | Height: | Size: 866 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 955 B |
BIN
OsmAnd/res/drawable-hdpi/list_activities_set_intermediate_h.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 955 B |
BIN
OsmAnd/res/drawable-hdpi/list_activities_show_on_map.png
Executable file → Normal file
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
OsmAnd/res/drawable-hdpi/list_activities_show_on_map_h.png
Executable file
After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 910 B |
|
@ -95,7 +95,6 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
private ImageButton showFilter;
|
||||
private PoiFilter filter;
|
||||
private AmenityAdapter amenityAdapter;
|
||||
private TextView searchArea;
|
||||
private EditText searchFilter;
|
||||
private View searchFilterLayout;
|
||||
|
||||
|
@ -127,7 +126,6 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
|
||||
uiHandler = new Handler();
|
||||
searchPOILevel = (Button) findViewById(R.id.SearchPOILevelButton);
|
||||
searchArea = (TextView) findViewById(R.id.SearchAreaText);
|
||||
searchFilter = (EditText) findViewById(R.id.SearchFilter);
|
||||
searchFilterLayout = findViewById(R.id.SearchFilterLayout);
|
||||
showOnMap = (ImageButton) findViewById(R.id.ShowOnMap);
|
||||
|
@ -269,7 +267,6 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
if (filter != this.filter) {
|
||||
this.filter = filter;
|
||||
if (filter != null) {
|
||||
getSupportActionBar().setSubtitle(filter.getName());
|
||||
filter.clearPreviousZoom();
|
||||
} else {
|
||||
amenityAdapter.setNewModel(Collections.<Amenity> emptyList(), "");
|
||||
|
@ -294,9 +291,8 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
showOnMap.setEnabled(filter != null);
|
||||
}
|
||||
showOnMap.setVisibility(View.VISIBLE);
|
||||
|
||||
updateSubtitle();
|
||||
if (filter != null) {
|
||||
searchArea.setText(filter.getSearchArea());
|
||||
updateSearchPoiTextButton();
|
||||
if (searchNearBy) {
|
||||
app.getLocationProvider().addLocationListener(this);
|
||||
|
@ -308,6 +304,12 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
app.getLocationProvider().addCompassListener(this);
|
||||
app.getLocationProvider().registerOrUnregisterCompassListener(true);
|
||||
}
|
||||
|
||||
private void updateSubtitle() {
|
||||
if(filter != null) {
|
||||
getSupportActionBar().setSubtitle(filter.getName() + " " + filter.getSearchArea());
|
||||
}
|
||||
}
|
||||
|
||||
private void showPoiCategoriesByNameFilter(String query, net.osmand.Location loc){
|
||||
OsmandApplication app = (OsmandApplication) getApplication();
|
||||
|
@ -605,7 +607,7 @@ public class SearchPOIActivity extends OsmandListActivity implements OsmAndCompa
|
|||
} else {
|
||||
amenityAdapter.setNewModel(result, searchFilter.getText().toString());
|
||||
}
|
||||
searchArea.setText(filter.getSearchArea());
|
||||
updateSubtitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|