This commit is contained in:
Victor Shcherb 2015-02-09 00:53:11 +01:00
parent d6575cf663
commit 5315e14227

View file

@ -45,7 +45,7 @@ public class NauticalMapsPlugin extends OsmandPlugin {
previousRenderer = app.getSettings().RENDERER.get(); previousRenderer = app.getSettings().RENDERER.get();
app.getSettings().RENDERER.set(RendererRegistry.NAUTICAL_RENDER); app.getSettings().RENDERER.set(RendererRegistry.NAUTICAL_RENDER);
if(!app.getResourceManager().getIndexFileNames().containsKey("World_seamarks"+ if(!app.getResourceManager().getIndexFileNames().containsKey("World_seamarks"+
"_" +IndexConstants.BINARY_MAP_VERSION + IndexConstants.BINARY_MAP_INDEX_EXT)){ IndexConstants.BINARY_MAP_INDEX_EXT)){
Builder dlg = new AlertDialog.Builder(activity); Builder dlg = new AlertDialog.Builder(activity);
dlg.setMessage(net.osmand.plus.R.string.nautical_maps_missing); dlg.setMessage(net.osmand.plus.R.string.nautical_maps_missing);
dlg.setPositiveButton(R.string.default_buttons_ok, new OnClickListener() { dlg.setPositiveButton(R.string.default_buttons_ok, new OnClickListener() {