Skip to content

Commit 49d013e

Browse files
authored
Merge pull request #362 from opendocument-app/fix-core-password-callback
Fix core password callback
2 parents 01c3efd + 6162515 commit 49d013e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
44
android:installLocation="auto"
5-
android:versionCode="181"
6-
android:versionName="3.28"
5+
android:versionCode="183"
6+
android:versionName="3.29"
77
tools:ignore="GoogleAppIndexingWarning">
88

99
<uses-permission android:name="android.permission.INTERNET" />

app/src/main/cpp/CoreWrapper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ Java_at_tomtasche_reader_background_CoreWrapper_parseNative(JNIEnv *env, jobject
119119
config.text_document_margin = true;
120120
}
121121

122-
html = odr::OpenDocumentReader::html(inputPathCpp, [&passwordCpp]() -> const char * {
122+
html = odr::OpenDocumentReader::html(inputPathCpp, [&passwordCpp]() -> std::string {
123123
if (passwordCpp.has_value()) {
124-
return passwordCpp.value().c_str();
124+
return passwordCpp.value();
125125
}
126-
return nullptr;
126+
return "";
127127
}, outputPathCpp, config);
128128

129129
{

0 commit comments

Comments
 (0)