|
|
@@ -512,9 +512,12 @@ public class MobileAuthPresenter implements IMobileAuthContract.Presenter {
|
|
|
isValidated = false;
|
|
|
}
|
|
|
|
|
|
- if (verifyAgrees(userBean.getAgreeList()) == false) {
|
|
|
- isValidated = false;
|
|
|
- }
|
|
|
+ /**
|
|
|
+ * 약관 동의는 '인증번호 발송' 버튼 표시 여부에 관여하지 않고, 버튼을 눌렀을 때 별도 처리한다.
|
|
|
+ */
|
|
|
+// if (verifyAgrees(userBean.getAgreeList()) == false) {
|
|
|
+// isValidated = false;
|
|
|
+// }
|
|
|
|
|
|
isValidated = isValidated && isAvailableRequestNumberButtonToDisable;
|
|
|
|
|
|
@@ -536,6 +539,15 @@ public class MobileAuthPresenter implements IMobileAuthContract.Presenter {
|
|
|
boolean isValidated = verifyRequestNumberValidation(true);
|
|
|
|
|
|
if (isValidated) {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 약관 동의는 '인증번호 발송' 버튼 표시 여부에 관여하지 않고, 버튼을 눌렀을 때 별도 처리한다.
|
|
|
+ */
|
|
|
+ if (verifyAgrees(userBean.getAgreeList()) == false) {
|
|
|
+ onAgreeFail();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
// call api...
|
|
|
Log.w("APP# MobileAuthPresenter | onAuthorizationNumberSendButtonClick", "|" + "call api ============ ");
|
|
|
|
|
|
@@ -568,6 +580,20 @@ public class MobileAuthPresenter implements IMobileAuthContract.Presenter {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void onAgreeFail() {
|
|
|
+ showConfirmDialog(R.string.phone_identify_agree_terms, new ICustomDialogListener<AlertDialog>() {
|
|
|
+ @Override
|
|
|
+ public void onDialogResult(AlertDialog dialog, Event event) {
|
|
|
+ if (event.getEventId() == Event.CONFIRM) {
|
|
|
+ dialog.dispose();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onDialogCanceled(AlertDialog dialog) { }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
private void onSendingFail() {
|
|
|
verifyRequestNumberButton(true);
|
|
|
view.setEnabledRequestConfirmTextView(false);
|