-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
图片加载中的时候点击返回直接崩溃 #55
Comments
提供一下日志 |
第一个问题没有日志,第一个问题很容易复现,开启2G网,当progressbar在转的时候点返回,直接就卡死了,我在看源码还没找到是什么问题。第二个问题的日志刚才忘复制了,稍后我复制过来 |
老哥,如果图片的路径打不开或者图片还没加载出来的时候点返回,直接就卡死了。这问题很致命啊,帮忙看一下代码需要改哪里,我是下载下来用的本地lib |
用图片加载框架如失失败就行了哦 |
像作者说的:用图片加载框架如失失败就行了哦 比如用glide加载图片,设置一个加载失败时的占位图就行了: Glide.with(context).load(path).apply(new RequestOptions().error(R.drawable.ic_default_pic))
|
如果图片还在加载中点击返回按钮的话 会直接卡死。在图片预览的时候切换到最后一张图的时候滑动退出,会有一定几率崩溃,
The text was updated successfully, but these errors were encountered: