You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
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:
11
src/api-impl-jni/AssetInputStream.h
Normal file
11
src/api-impl-jni/AssetInputStream.h
Normal 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);
|
||||
Reference in New Issue
Block a user