|
@@ -75,10 +75,14 @@ public class PictureAdapter extends BaseRecyclerViewAdapter<Photos> {
|
|
|
String url = Constant.ServerImgIPDown + photos.key;
|
|
|
FileInputStream fis = null;
|
|
|
try {
|
|
|
- fis = new FileInputStream(photos.path);
|
|
|
- Bitmap bitmap = BitmapFactory.decodeStream(fis);
|
|
|
- ImageView imageView = (ImageView) holder.getView(R.id.node_nine_pic_iv);
|
|
|
- imageView.setImageBitmap(bitmap);
|
|
|
+ if (!TextUtils.isEmpty(photos.path)) {
|
|
|
+ fis = new FileInputStream(photos.path);
|
|
|
+ Bitmap bitmap = BitmapFactory.decodeStream(fis);
|
|
|
+ ImageView imageView = (ImageView) holder.getView(R.id.node_nine_pic_iv);
|
|
|
+ imageView.setImageBitmap(bitmap);
|
|
|
+ } else {
|
|
|
+ loadImageViewCornersByPath(mContext, url, holder.getView(R.id.node_nine_pic_iv));
|
|
|
+ }
|
|
|
} catch (FileNotFoundException e) {
|
|
|
e.printStackTrace();
|
|
|
loadImageViewCornersByPath(mContext, url, holder.getView(R.id.node_nine_pic_iv));
|