From 511a3541556d1598e842056c80ebbf01dacfe7e0 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 25 Mar 2024 10:09:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20[=E6=B6=88=E6=81=AF=E8=AE=BE=E7=BD=AE-?= =?UTF-8?q?=E5=9B=BE=E7=89=87-=E9=80=89=E6=8B=A9=E5=9B=BE=E7=89=87-?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=A3=81=E5=89=AA=E5=B7=A6=E8=BE=B9=E7=9A=84?= =?UTF-8?q?=C3=97=EF=BC=8C=E5=9B=9E=E5=88=B0=E6=B6=88=E6=81=AF=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E9=9D=A2=E5=90=8E=E5=8D=A1=E4=BD=8F]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/common/utils/ProcessImageUtil.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/src/main/java/com/yunbao/common/utils/ProcessImageUtil.java b/common/src/main/java/com/yunbao/common/utils/ProcessImageUtil.java index 5697ab4..eba9bbf 100644 --- a/common/src/main/java/com/yunbao/common/utils/ProcessImageUtil.java +++ b/common/src/main/java/com/yunbao/common/utils/ProcessImageUtil.java @@ -93,6 +93,9 @@ public class ProcessImageUtil extends ProcessResultUtil { @Override public void onFailure() { ToastUtil.show(mContext.getString(R.string.img_camera_cancel)); + if(mResultCallback!=null){ + mResultCallback.onFailure(); + } } }; mAlumbResultCallback = new ActivityResultCallback() { @@ -104,6 +107,9 @@ public class ProcessImageUtil extends ProcessResultUtil { @Override public void onFailure() { ToastUtil.show(mContext.getString(R.string.img_alumb_cancel)); + if(mResultCallback!=null){ + mResultCallback.onFailure(); + } } }; mCropResultCallback = new ActivityResultCallback() { @@ -117,6 +123,9 @@ public class ProcessImageUtil extends ProcessResultUtil { @Override public void onFailure() { ToastUtil.show(mContext.getString(R.string.img_crop_cancel)); + if(mResultCallback!=null){ + mResultCallback.onFailure(); + } } }; }