Fix poi editing
This commit is contained in:
parent
d37191237a
commit
adf414222b
2 changed files with 3 additions and 25 deletions
|
@ -2091,8 +2091,8 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A
|
|||
<string name="map_legend">Map legend</string>
|
||||
<string name="save_poi_without_poi_type_message">Do you really want to save poi without POI type?</string>
|
||||
<string name="poi_context_menu_modify_osm_change">Modify OSM change</string>
|
||||
<string name="use_dashboard_btn">Always launch dashboard</string>
|
||||
<string name="use_drawer_btn">Always launch map</string>
|
||||
<string name="use_dashboard_btn">Launch dashboard</string>
|
||||
<string name="use_drawer_btn">Launch map</string>
|
||||
<string name="dashboard_or_drawer_title">New startup choice</string>
|
||||
<string name="dashboard_or_drawer_description">You can now select if the app directly launches the map screen or always displays the dashboard first. Your choice can always be changed in the dashboard settings.</string>
|
||||
</resources>
|
||||
|
|
|
@ -339,27 +339,5 @@ public class AdvancedEditPoiFragment extends Fragment
|
|||
+ abstractPoiType.getClass());
|
||||
}
|
||||
}
|
||||
|
||||
class InitTagsAndValuesAutocompleteTask extends AsyncTask<Void, Void, Map<String, AbstractPoiType>> {
|
||||
private final MapPoiTypes mapPoiTypes;
|
||||
|
||||
public InitTagsAndValuesAutocompleteTask(MapPoiTypes mapPoiTypes) {
|
||||
this.mapPoiTypes = mapPoiTypes;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Map<String, AbstractPoiType> doInBackground(Void... params) {
|
||||
return mapPoiTypes.getAllTypesTranslatedNames(new StringMatcher() {
|
||||
@Override
|
||||
public boolean matches(String name) {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPostExecute(Map<String, AbstractPoiType> result) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue