This commit is contained in:
Chumva 2018-09-19 14:14:08 +03:00
parent 122b036c45
commit fd7f8895a0
3 changed files with 3 additions and 2 deletions

View file

@ -67,4 +67,5 @@ public class IndexConstants {
public static final String VOICE_INDEX_DIR = "voice/"; //$NON-NLS-1$
public static final String RENDERERS_DIR = "rendering/"; //$NON-NLS-1$
public static final String ROUTING_XML_FILE= "routing.xml";
public static final String SETTINGS_DIR = "settings/"; //$NON-NLS-1$
}

View file

@ -335,7 +335,7 @@ public class AppInitializer implements IProgress {
}
private void initPoiTypes() {
if(app.getAppPath("poi_types.xml").exists()) {
if (app.getAppPath(IndexConstants.SETTINGS_DIR + "poi_types.xml").exists()) {
app.poiTypes.init(app.getAppPath("poi_types.xml").getAbsolutePath());
} else {
app.poiTypes.init();

View file

@ -497,7 +497,7 @@ public class ResourceManager {
private void copyPoiTypes() {
try {
File file = context.getAppPath("poi_types.xml");
File file = context.getAppPath(IndexConstants.SETTINGS_DIR + "poi_types.xml");
if (file != null) {
FileOutputStream fout = new FileOutputStream(file);
Algorithms.streamCopy(MapPoiTypes.class.getResourceAsStream("poi_types.xml"), fout);