Commit df90fe69 by 郭倩芳

图片预览--app友盟上的异常

parent e055d37b
...@@ -114,7 +114,7 @@ public class ImageFragment extends Fragment implements PhotoViewAttacher.OnViewT ...@@ -114,7 +114,7 @@ public class ImageFragment extends Fragment implements PhotoViewAttacher.OnViewT
return ""; return "";
} }
void showView(String savePath) { void showView(String savePath) {
if (!TextUtils.isEmpty(imageUrL)) { if (!TextUtils.isEmpty(imageUrL) && getContext()!=null) {
bitmap = SobotBitmapUtil.compress(savePath, getContext(), true); bitmap = SobotBitmapUtil.compress(savePath, getContext(), true);
//判断图片是否有旋转,有的话旋转后再显示 //判断图片是否有旋转,有的话旋转后再显示
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment