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

@ -135,7 +135,7 @@ public class MainMenuActivity extends Activity {
SharedPreferences prefs = activity.getApplicationContext().getSharedPreferences("net.osmand.settings", MODE_WORLD_READABLE); SharedPreferences prefs = activity.getApplicationContext().getSharedPreferences("net.osmand.settings", MODE_WORLD_READABLE);
// only one commit should be with contribution version flag // only one commit should be with contribution version flag
// prefs.edit().putBoolean(CONTRIBUTION_VERSION_FLAG, true).commit(); // prefs.edit().putBoolean(CONTRIBUTION_VERSION_FLAG, true).commit();
if (prefs.contains(CONTRIBUTION_VERSION_FLAG)) { if (prefs.contains(CONTRIBUTION_VERSION_FLAG)) {
SpannableString content = new SpannableString(textVersion); SpannableString content = new SpannableString(textVersion);
content.setSpan(new ClickableSpan() { content.setSpan(new ClickableSpan() {

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);
} }
} }
} }