HiFrameAnimation icon indicating copy to clipboard operation
HiFrameAnimation copied to clipboard

从磁盘读取图片的时候报java.io.InterruptedIOException: thread interrupted

Open ZY9898 opened this issue 7 years ago • 2 comments

你好,我在使用你的库的时候,将你的demo里面从assets( InputStream frameInputStream = HolderApplication.getInstance().getAssets().open(drawableResPath);)下面读取文件改为从磁盘( InputStream frameInputStream = new FileInputStream(drawableResPath);)读取以后就报错java.io.InterruptedIOException: thread interrupted。。。可有什么好的解决方法

ZY9898 avatar Aug 04 '17 09:08 ZY9898

会不会是权限关系?

shusanzi avatar Aug 07 '17 06:08 shusanzi

应该不是,我把它设为循环播放就不会出现。是每张图持续时间与代码里面持续时间有误差,特别是在一些低端点手机上,会出现频繁GC,导帧动画会放的比较慢,然后就会放不完就停止了动画,望修复修复

ZY9898 avatar Aug 07 '17 06:08 ZY9898