From 9e518a597809c9e3637d8ff2f06dd664afed023b Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 12 十二月 2019 16:59:32 +0800 Subject: [PATCH] 更改了图片的大小 --- ZigbeeApp/Shared/Phone/Device/Category/CategoryAddScene.cs | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Category/CategoryAddScene.cs b/ZigbeeApp/Shared/Phone/Device/Category/CategoryAddScene.cs index a025338..b0c2487 100755 --- a/ZigbeeApp/Shared/Phone/Device/Category/CategoryAddScene.cs +++ b/ZigbeeApp/Shared/Phone/Device/Category/CategoryAddScene.cs @@ -554,7 +554,11 @@ var fileName = $"SceneIcon_{tradeTime}"; //閫氳繃鐩告満鎷嶇収瑁佸壀 CropImage.TakePicture((imagePath) => - { + { + if (string.IsNullOrEmpty(imagePath) == true) + { + return; + } if (isModify) { if (IconPathType != 0) @@ -578,7 +582,11 @@ var fileName = $"SceneIcon_{tradeTime}"; //浠庣浉鍐岄�夋嫨鍥剧墖瑁佸壀 CropImage.SelectPicture((imagePath) => - { + { + if (string.IsNullOrEmpty(imagePath) == true) + { + return; + } if (isModify) { if (IconPathType != 0) -- Gitblit v1.8.0