|
|
@@ -85,37 +85,6 @@ public class SignUpMobileAuthPresenter extends SignUpFragmentPresenter {
|
|
|
|
|
|
@Override
|
|
|
public void onResult(Event event) {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public boolean onBackPressed() {
|
|
|
- DialogBuilder.create(DialogID.ALERT)
|
|
|
- .listener(new IDialogResultListener() {
|
|
|
- @Override
|
|
|
- public void onDialogResult(DialogBase dialog, Event event) {
|
|
|
- if (event.getEventId() == Event.CONFIRM) {
|
|
|
- dialog.dispose();
|
|
|
-
|
|
|
- onCommand(new ActivityChangeCommand(ScreenID.ACTIVITY_MAIN, ScreenID.DIRECTION_BACK));
|
|
|
-// onCommand(new FragmentChangeCommand(ScreenID.SIGN_UP_PIN, ScreenID.DIRECTION_BACK));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public void onDialogCanceled(DialogBase dialog) {
|
|
|
- dialog.dispose();
|
|
|
- }
|
|
|
- })
|
|
|
- .attribute((IAttribute<CustomAlertDialog>) dialog -> {
|
|
|
- dialog.setText(ResourceUtil.getString(model.getBackwardWarnStringId()));
|
|
|
- })
|
|
|
- .show();
|
|
|
- return true;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- protected void onEventInternal(Event event) {
|
|
|
switch (event.getEventId()) {
|
|
|
case Event.CONFIRM:
|
|
|
if (event.getInteger() == Event.MEMBER_AUTH) {
|
|
|
@@ -156,6 +125,44 @@ public class SignUpMobileAuthPresenter extends SignUpFragmentPresenter {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public boolean onBackPressed() {
|
|
|
+ DialogBuilder.create(DialogID.ALERT)
|
|
|
+ .listener(new IDialogResultListener() {
|
|
|
+ @Override
|
|
|
+ public void onDialogResult(DialogBase dialog, Event event) {
|
|
|
+ if (event.getEventId() == Event.CONFIRM) {
|
|
|
+ dialog.dispose();
|
|
|
+
|
|
|
+ onCommand(new ActivityChangeCommand(ScreenID.ACTIVITY_MAIN, ScreenID.DIRECTION_BACK));
|
|
|
+// onCommand(new FragmentChangeCommand(ScreenID.SIGN_UP_PIN, ScreenID.DIRECTION_BACK));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void onDialogCanceled(DialogBase dialog) {
|
|
|
+ dialog.dispose();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .attribute((IAttribute<CustomAlertDialog>) dialog -> {
|
|
|
+ dialog.setText(ResourceUtil.getString(model.getBackwardWarnStringId()));
|
|
|
+ })
|
|
|
+ .show();
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void onEventInternal(Event event) {
|
|
|
+ switch (event.getEventId()) {
|
|
|
+ case Event.SUCCESS:
|
|
|
+ Log.i("APP# SignUpMobileAuthPresenter | onEventInternal", "|" + "resultString: " + event.getJson());
|
|
|
+ model.onAuthResult(event);
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private void showPopup() {
|
|
|
dialog = DialogBuilder.create(DialogID.CONFIRM)
|
|
|
.listener(new IDialogResultListener() {
|