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:
Matthieu Gautier 2023-11-09 11:19:54 +01:00
parent f9dc43e177
commit d109cc5aa8

View File

@ -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)