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);
|
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() {
|
||||||
|
|
|
@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue