fix [消息设置-图片-选择图片-点击裁剪左边的×,回到消息设置页面后卡住]
This commit is contained in:
parent
463e7b9040
commit
511a354155
@ -93,6 +93,9 @@ public class ProcessImageUtil extends ProcessResultUtil {
|
|||||||
@Override
|
@Override
|
||||||
public void onFailure() {
|
public void onFailure() {
|
||||||
ToastUtil.show(mContext.getString(R.string.img_camera_cancel));
|
ToastUtil.show(mContext.getString(R.string.img_camera_cancel));
|
||||||
|
if(mResultCallback!=null){
|
||||||
|
mResultCallback.onFailure();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
mAlumbResultCallback = new ActivityResultCallback() {
|
mAlumbResultCallback = new ActivityResultCallback() {
|
||||||
@ -104,6 +107,9 @@ public class ProcessImageUtil extends ProcessResultUtil {
|
|||||||
@Override
|
@Override
|
||||||
public void onFailure() {
|
public void onFailure() {
|
||||||
ToastUtil.show(mContext.getString(R.string.img_alumb_cancel));
|
ToastUtil.show(mContext.getString(R.string.img_alumb_cancel));
|
||||||
|
if(mResultCallback!=null){
|
||||||
|
mResultCallback.onFailure();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
mCropResultCallback = new ActivityResultCallback() {
|
mCropResultCallback = new ActivityResultCallback() {
|
||||||
@ -117,6 +123,9 @@ public class ProcessImageUtil extends ProcessResultUtil {
|
|||||||
@Override
|
@Override
|
||||||
public void onFailure() {
|
public void onFailure() {
|
||||||
ToastUtil.show(mContext.getString(R.string.img_crop_cancel));
|
ToastUtil.show(mContext.getString(R.string.img_crop_cancel));
|
||||||
|
if(mResultCallback!=null){
|
||||||
|
mResultCallback.onFailure();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user