Init native core before poi types and indexes

This commit is contained in:
Alex Sytnyk 2018-10-16 15:18:08 +03:00
parent 3714fcb65b
commit 985a008efb

View file

@ -631,16 +631,14 @@ public class AppInitializer implements IProgress {
// native depends on renderers // native depends on renderers
initOpenGl(); initOpenGl();
notifyEvent(InitEvents.NATIVE_OPEN_GLINITIALIZED); notifyEvent(InitEvents.NATIVE_OPEN_GLINITIALIZED);
initNativeCore();
notifyEvent(InitEvents.NATIVE_INITIALIZED);
// init poi types before indexes and before POI // init poi types before indexes and before POI
initPoiTypes(); initPoiTypes();
notifyEvent(InitEvents.POI_TYPES_INITIALIZED); notifyEvent(InitEvents.POI_TYPES_INITIALIZED);
app.resourceManager.reloadIndexesOnStart(this, warnings); app.resourceManager.reloadIndexesOnStart(this, warnings);
// native depends on renderers
initNativeCore();
notifyEvent(InitEvents.NATIVE_INITIALIZED);
app.favorites.loadFavorites(); app.favorites.loadFavorites();
notifyEvent(InitEvents.FAVORITES_INITIALIZED); notifyEvent(InitEvents.FAVORITES_INITIALIZED);
app.poiFilters.reloadAllPoiFilters(); app.poiFilters.reloadAllPoiFilters();