WebView: use Asset_read() instead of Asset_openFileDescriptor()

openFileDescriptor doesn't work for assets which are compressed inside
the APK.
This commit is contained in:
Julian Winkler
2024-10-04 17:59:47 +02:00
parent 0627ae7e54
commit 21a75d7ff0
4 changed files with 45 additions and 7 deletions

View File

@@ -92,6 +92,7 @@ libtranslationlayer_so = shared_library('translation_layer_main', [
'src/api-impl-jni/app/android_app_AlertDialog.c',
'src/api-impl-jni/app/android_app_Dialog.c',
'src/api-impl-jni/app/android_app_NotificationManager.c',
'src/api-impl-jni/AssetInputStream.c',
'src/api-impl-jni/audio/android_media_AudioTrack.c',
'src/api-impl-jni/audio/android_media_SoundPool.c',
'src/api-impl-jni/content/android_content_ClipboardManager.c',