Fixed an issue with AndroidNativeImageLoader which was opening stream twice. (#1338)
This commit is contained in:
parent
969e2808e4
commit
0bdb0159be
@ -30,7 +30,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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user