use of net.osmand.plus.importfiles.ImportHelper.ImportType.ROUTING in project Osmand by osmandapp.
the class SelectNavProfileBottomSheet method createOfflineFooter.
private void createOfflineFooter() {
items.add(new LongDescriptionItem(app.getString(R.string.osmand_routing_promo)));
addButtonItem(R.string.import_routing_file, R.drawable.ic_action_folder, v -> {
MapActivity mapActivity = getMapActivity();
if (mapActivity == null) {
return;
}
mapActivity.getImportHelper().chooseFileToImport(ROUTING, (CallbackWithObject<Builder>) builder -> {
updateMenuItems();
return false;
});
});
}
Aggregations