mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-09-19 03:55:19 -04:00
Do not the library in readOnly mode.
The readOnly argument of `readFile` is to put the loaded library in readOnly mode. Which kinda means "Do not write again what is loaded". We don't want that for android as we want to save again our (potentially modified) library. See kiwix/kiwix-android#3474
This commit is contained in:
parent
f9dc43e177
commit
d109cc5aa8
@ -41,7 +41,7 @@ METHOD(jboolean, readFile, jstring path)
|
||||
{
|
||||
auto cPath = TO_C(path);
|
||||
|
||||
return THIS->readFile(cPath);
|
||||
return THIS->readFile(cPath, false);
|
||||
} CATCH_EXCEPTION(false)
|
||||
|
||||
METHOD(jboolean, readXml, jstring content, jstring libraryPath)
|
||||
|
Loading…
x
Reference in New Issue
Block a user