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
AssetManager: fix up AssetInputStream
This commit is contained in:
@@ -80,7 +80,7 @@ JNIEXPORT jint JNICALL Java_android_content_res_AssetManager_readAssetChar(JNIEn
|
||||
|
||||
struct Asset *asset = _PTR(_asset);
|
||||
ret = Asset_read(asset, &byte, 1);
|
||||
return (ret == 1) ? byte : ret;
|
||||
return (ret == 1) ? byte : -1;
|
||||
}
|
||||
|
||||
JNIEXPORT jlong JNICALL Java_android_content_res_AssetManager_seekAsset(JNIEnv *env, jobject this, jlong _asset, jlong offset, jint whence)
|
||||
|
||||
Reference in New Issue
Block a user