|
@@ -29,6 +29,7 @@ import com.datarecovery.master.data.consts.EventId;
|
|
|
import com.datarecovery.master.data.repositories.DeviceFuncRepository;
|
|
import com.datarecovery.master.data.repositories.DeviceFuncRepository;
|
|
|
import com.datarecovery.master.handler.EventHelper;
|
|
import com.datarecovery.master.handler.EventHelper;
|
|
|
import com.datarecovery.master.module.member.MemberType;
|
|
import com.datarecovery.master.module.member.MemberType;
|
|
|
|
|
+import com.datarecovery.master.sdk.bugly.BuglyHelper;
|
|
|
import com.datarecovery.master.utils.BoxingUtil;
|
|
import com.datarecovery.master.utils.BoxingUtil;
|
|
|
import com.datarecovery.master.utils.FileUtil;
|
|
import com.datarecovery.master.utils.FileUtil;
|
|
|
import com.datarecovery.master.utils.ImageDeepDetector;
|
|
import com.datarecovery.master.utils.ImageDeepDetector;
|
|
@@ -435,6 +436,7 @@ public class ImageRecoverViewModel extends BaseViewModel {
|
|
|
public void onError(@NonNull Throwable e) {
|
|
public void onError(@NonNull Throwable e) {
|
|
|
showLoadingEvent.setValue(false);
|
|
showLoadingEvent.setValue(false);
|
|
|
ToastUtil.show(R.string.delete_fail, ToastUtil.LENGTH_SHORT);
|
|
ToastUtil.show(R.string.delete_fail, ToastUtil.LENGTH_SHORT);
|
|
|
|
|
+ BuglyHelper.postCatchedException(FileUtil.getFileListFailException(list, "图片清除失败"));
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -488,6 +490,7 @@ public class ImageRecoverViewModel extends BaseViewModel {
|
|
|
}, throwable -> {
|
|
}, throwable -> {
|
|
|
showLoadingEvent.setValue(false);
|
|
showLoadingEvent.setValue(false);
|
|
|
ToastUtil.show(R.string.export_fail, ToastUtil.LENGTH_SHORT);
|
|
ToastUtil.show(R.string.export_fail, ToastUtil.LENGTH_SHORT);
|
|
|
|
|
+ BuglyHelper.postCatchedException(FileUtil.getFileListFailException(list, "图片导出失败"));
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|