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

@@ -0,0 +1,11 @@
#include <gio/gio.h>
struct _AssetInputStream
{
GInputStream parent_instance;
struct Asset *asset;
};
G_DECLARE_FINAL_TYPE(AssetInputStream, asset_input_stream, ATL, ASSET_INPUT_STREAM, GInputStream);
GInputStream *asset_input_stream_new(struct Asset *asset);