fengpiaolin / ngacnphone

Automatically exported from code.google.com/p/ngacnphone
0 stars 1 forks source link

第一次进入头像不能异步加载 #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. 在帖子列表中选择帖子进入

What is the expected output? What do you see instead?
第一次头像就能正常加载。第一次头像不能加载,退出重新��
�才可以

What version of the product are you using? On what operating system?
V318。nexus s 4.1.1

Please provide any additional information below.
我下了代码debug了一下,发现在异步下载图片完成后,调用的
ImageUtil.loadAvatarFromStream(InputStream is)中decode 
bitmap是返回Null,具体原因没有查,这导致回到主线程判断后�
��有正常设置图片,而退出重新进后,不下载头像时调用的方
法是ImageUtil.loadAvatarFromSdcard(String 
avatarPath),这个方法可以正常解析图片,所以头像就出来了,
我把AvatarLoadTask中解析图片也改成了这个方法,第一次进入头
像就能正常出现了,望知悉

Original issue reported on code.google.com by prede...@gmail.com on 27 Jul 2012 at 11:23

GoogleCodeExporter commented 9 years ago

Original comment by grp...@gmail.com on 10 Aug 2012 at 3:06

GoogleCodeExporter commented 9 years ago
感谢提供线索.

Original comment by grp...@gmail.com on 10 Aug 2012 at 3:07