Skip to content

Commit cb2114b

Browse files
committed
fix 保存图片
1 parent 8fe019e commit cb2114b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

android/messagelist/src/main/java/cn/jiguang/imui/utils/PhotoViewPagerViewUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ public void onClick(View v) {
176176
}
177177

178178
public static void saveImageToAlbum(String imagePath, Context context) {
179+
if(TextUtils.isEmpty(imagePath)){
180+
return;
181+
}
179182
File imageFile = new File(imagePath);
180183
if (imageFile.exists()) {
181184
try {

0 commit comments

Comments
 (0)