private boolean checkUmState() { long mId = message.getId(); int mediaId = resource.getMediaId(); if (UmFunc.getIns().isInTransFile(mId, mediaId, false)) { FileTransfer.ProgressInfo info = UmFunc.getIns().getTransProcess(mId, mediaId, false); if (info != null) { updateProgress(info.getCurSize(), info.getTotalSize()); } return false; } int resType = resource.getResourceType(); if (MediaResource.RES_LOCAL == resType) { String path = resource .getLocalPath(); // UmUtil.createResPath(MediaResource.MEDIA_FILE, resource.getName(), // ""); return !checkFileExistAndOpen(path); } return true; }