|
@@ -4,6 +4,7 @@ package com.fxy.common;
|
|
|
import android.app.Activity;
|
|
|
import android.app.ProgressDialog;
|
|
|
import android.content.DialogInterface;
|
|
|
+import android.widget.Toast;
|
|
|
|
|
|
import com.fxy.baselibrary.bean.BaseEventBusBean;
|
|
|
import com.fxy.constant.EventCode;
|
|
@@ -18,7 +19,6 @@ import java.util.Objects;
|
|
|
public class UploadDialog {
|
|
|
private OnEventCallback callback;
|
|
|
private Activity mActivity;
|
|
|
- private EventBus eventBus;
|
|
|
private ProgressDialog progressDialog;
|
|
|
private AsyncPictureUpload asyncPictureUpload ;
|
|
|
private boolean currentUploadStatus = false;
|
|
@@ -92,8 +92,9 @@ public class UploadDialog {
|
|
|
asyncPictureUpload.setStartUpload();
|
|
|
currentUploadStatus = false;
|
|
|
}
|
|
|
- if (asyncPictureUpload.getAwaitUploadListNum()==0){
|
|
|
+ if (asyncPictureUpload.getAllAwaitNum()==0){
|
|
|
progressDialog.dismiss();
|
|
|
+ Toast.makeText(mActivity, "已全部上传", Toast.LENGTH_SHORT).show();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -107,7 +108,6 @@ public class UploadDialog {
|
|
|
|
|
|
|
|
|
public void unregister() {
|
|
|
- eventBus.unregister(this);
|
|
|
if (asyncPictureUpload!=null){
|
|
|
asyncPictureUpload.setStopUpload();
|
|
|
asyncPictureUpload.removeHandler();
|