fxlcy
fxlcy
RangeDownloader文件 shadowFileBuffer.put(buffer, 0, readLen)可能会出现该问题 解决方法 shadowFileBuffer.put(buffer, 0, readLen)之前加上 if (readLen > shadowFileBuffer.remaining()) { val size = shadowChannel.size() val newFileBuffer = shadowChannel .map(READ_WRITE, current, size) shadowFileBuffer = newFileBuffer }
在使用ARouter过程中发现,有几个问题: 1.fragment.startActivityForResult的功能在ARouter没有实现。 2.AppCompatTextView等控件中context通过TintContextWrapper.wrap(context)生成的一个新的context后,通过里面的context来跳转intent会添加Intent.FLAG_ACTIVITY_NEW_TASK的flag。 现已优化以上两个问题