|
|
@@ -4,6 +4,7 @@ import android.content.Intent;
|
|
|
import android.text.TextUtils;
|
|
|
|
|
|
import com.tongyu.luck.happywork.AppCacheManager;
|
|
|
+import com.tongyu.luck.happywork.R;
|
|
|
import com.tongyu.luck.happywork.baselibrary.IntentConstant;
|
|
|
import com.tongyu.luck.happywork.bean.FullPositionBean;
|
|
|
import com.tongyu.luck.happywork.bean.PositionAddressBean;
|
|
|
@@ -16,6 +17,7 @@ import com.tongyu.luck.happywork.ui.activity.cclient.job.ShuttleBusLineActivity;
|
|
|
import com.tongyu.luck.happywork.ui.base.BasePresenter;
|
|
|
import com.tongyu.luck.happywork.ui.mvp.cclient.contacts.FullJobDetailContacts;
|
|
|
import com.tongyu.luck.happywork.ui.mvp.cclient.model.FullJobDetailModel;
|
|
|
+import com.tongyu.luck.happywork.ui.widget.dialog.SureDialog;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
@@ -106,17 +108,23 @@ public class FullJobDetailPresenter extends BasePresenter<FullJobDetailActivity>
|
|
|
return;
|
|
|
}
|
|
|
if (AppCacheManager.getInstance().getResumeModel() != null && AppCacheManager.getInstance().getResumeModel().isBaseInformation()) {
|
|
|
- mFullJobDetailModel.uploadSaveApply(new MvpDataCallBack<Boolean>() {
|
|
|
+ new SureDialog(mvpReference.get()).initData(R.string.toast_job_request, R.string.cancel, R.string.sure, new SureDialog.OnClickSureListener() {
|
|
|
@Override
|
|
|
- public void onData(Boolean data) {
|
|
|
- if (isViewAttach()) {
|
|
|
- if (data)
|
|
|
- mvpReference.get().onApply(mFullJobDetailModel.isApply());
|
|
|
- else
|
|
|
- mvpReference.get().onInitResume();
|
|
|
- }
|
|
|
+ public void onClick(boolean isSure) {
|
|
|
+ if (isSure)
|
|
|
+ mFullJobDetailModel.uploadSaveApply(new MvpDataCallBack<Boolean>() {
|
|
|
+ @Override
|
|
|
+ public void onData(Boolean data) {
|
|
|
+ if (isViewAttach()) {
|
|
|
+ if (data)
|
|
|
+ mvpReference.get().onApply(mFullJobDetailModel.isApply());
|
|
|
+ else
|
|
|
+ mvpReference.get().onInitResume();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
- });
|
|
|
+ }).show();
|
|
|
} else {//完善个人简历
|
|
|
mvpReference.get().onInitResume();
|
|
|
}
|