Fixed an issue with AndroidNativeImageLoader which was opening stream twice. (#1338)

This commit is contained in:
Ali-RS 2020-04-08 13:14:04 +04:30 committed by GitHub
parent b8287a2d0d
commit 16a3e7630c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ public class AndroidNativeImageLoader implements AssetLoader {
InputStream in = null; InputStream in = null;
try { try {
in = info.openStream(); in = info.openStream();
return load(info.openStream(), flip, tmpArray); return load(in, flip, tmpArray);
} finally { } finally {
if (in != null){ if (in != null){
in.close(); in.close();