Initialize native rendering lazy

This commit is contained in:
Victor Shcherb 2011-11-22 09:02:40 +01:00
parent cb797ba3e3
commit 5571025001
2 changed files with 3 additions and 2 deletions

View file

@ -18,10 +18,11 @@ public class NativeOsmandLibrary {
try { try {
System.loadLibrary("osmand"); System.loadLibrary("osmand");
library = new NativeOsmandLibrary(); library = new NativeOsmandLibrary();
NativeOsmandLibrary.initRenderingRulesStorage(storage);
} catch (Throwable e) { } catch (Throwable e) {
isNativeSupported = false; isNativeSupported = false;
} }
NativeOsmandLibrary.initRenderingRulesStorage(storage);
} }
} }
} }