Initialize native rendering lazy
This commit is contained in:
parent
cb797ba3e3
commit
5571025001
2 changed files with 3 additions and 2 deletions
|
@ -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() {
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue