| | |
| | | import cn.flightfeather.thirdapp.CommonApplication; |
| | | import cn.flightfeather.thirdapp.R; |
| | | import cn.flightfeather.thirdapp.adapter.MediaFileListAdapter; |
| | | import cn.flightfeather.thirdapp.bean.Mediafile; |
| | | import cn.flightfeather.thirdapp.bean.entity.Mediafile; |
| | | import cn.flightfeather.thirdapp.task.CompressPhotoTask; |
| | | import okhttp3.MediaType; |
| | | import okhttp3.MultipartBody; |
| | |
| | | mediaFileListCurrent.removeAll(mediaFileListCurrent); |
| | | mediaFileListCurrent.addAll(mediaFileList2); |
| | | photoTotal = mediaFileListCurrent.size(); |
| | | photoUploaded = 0; |
| | | adapter.notifyDataSetChanged(); |
| | | } |
| | | } |
| | |
| | | pb_uploading.setMax(photoTotal); |
| | | pb_uploading.setProgress(photoUploaded); |
| | | tv_status.setText("压缩中..."); |
| | | uploadingDialog2 = uploadingDialog.show(); |
| | | |
| | | |
| | | |
| | | if (uploadingDialog2 != null && !uploadingDialog2.isShowing()) { |
| | | uploadingDialog2.show(); |
| | | } else { |
| | | uploadingDialog2 = uploadingDialog.show(); |
| | | } |
| | | } |
| | | //开始上传 |
| | | public void startUplaod(List<File> outputFileList){ |