From 557102500122280c8227034e6a68a11835a574df Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Tue, 22 Nov 2011 09:02:40 +0100 Subject: [PATCH] Initialize native rendering lazy --- OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java | 2 +- OsmAnd/src/net/osmand/plus/render/NativeOsmandLibrary.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java index cd1eb212ad..475929b44c 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/MainMenuActivity.java @@ -135,7 +135,7 @@ public class MainMenuActivity extends Activity { SharedPreferences prefs = activity.getApplicationContext().getSharedPreferences("net.osmand.settings", MODE_WORLD_READABLE); // 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)) { SpannableString content = new SpannableString(textVersion); content.setSpan(new ClickableSpan() { diff --git a/OsmAnd/src/net/osmand/plus/render/NativeOsmandLibrary.java b/OsmAnd/src/net/osmand/plus/render/NativeOsmandLibrary.java index 930ead4abd..0e27838279 100644 --- a/OsmAnd/src/net/osmand/plus/render/NativeOsmandLibrary.java +++ b/OsmAnd/src/net/osmand/plus/render/NativeOsmandLibrary.java @@ -18,10 +18,11 @@ public class NativeOsmandLibrary { try { System.loadLibrary("osmand"); library = new NativeOsmandLibrary(); + NativeOsmandLibrary.initRenderingRulesStorage(storage); } catch (Throwable e) { isNativeSupported = false; } - NativeOsmandLibrary.initRenderingRulesStorage(storage); + } } }