Skip to content

Commit

Permalink
避免NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed Apr 20, 2022
1 parent a3c2335 commit acfb7c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void onResourceReady(@NonNull File resource, Transition<? super File> tra
bigImageView.setOnImageEventListener(new SSIVListener(bigImageView, progressBar, errImg, longImage));
Bitmap preview = XPopupUtils.getBitmap(resource, XPopupUtils.getAppWidth(context), XPopupUtils.getScreenHeight(context));
bigImageView.setImage(ImageSource.uri(Uri.fromFile(resource)).dimensions(size[0], size[1]),
ImageSource.cachedBitmap(preview));
preview!=null ? ImageSource.cachedBitmap(preview):null);
}
}
});
Expand Down

0 comments on commit acfb7c6

Please sign in to comment.