|
|
@@ -179,7 +179,16 @@ public class ScreenStarter implements IModuleEmergencyHandler {
|
|
|
|
|
|
@Override
|
|
|
public void onApiError(String errorMessage, APIError error) {
|
|
|
- showErrorPopup(errorMessage, () -> exit());
|
|
|
+
|
|
|
+ showErrorPopup(errorMessage, () -> {
|
|
|
+ if (error.getCode() == APIError.ERROR_UNREGISTER_MEMBER) {
|
|
|
+ // 등록하지 않은 사람
|
|
|
+ gotoScreen(START_LOGIN);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ exit();
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
})
|
|
|
);
|
|
|
@@ -197,10 +206,10 @@ public class ScreenStarter implements IModuleEmergencyHandler {
|
|
|
// 미가입
|
|
|
String message = resultBean.getReturnMessage();
|
|
|
if (StringUtil.isFull(message)) {
|
|
|
- showErrorPopup(message, () -> exit());
|
|
|
+ showErrorPopup(message, () -> gotoScreen(START_LOGIN));
|
|
|
}
|
|
|
else {
|
|
|
- showErrorPopup(ResourceUtil.getString(R.string.quit_member), () -> exit());
|
|
|
+ showErrorPopup(ResourceUtil.getString(R.string.quit_member), () -> gotoScreen(START_LOGIN));
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
@@ -210,14 +219,10 @@ public class ScreenStarter implements IModuleEmergencyHandler {
|
|
|
|
|
|
// 정상 -> 로그인 시 코인 지급 내역을 메인에서 표시하기 위해서 bean 전달
|
|
|
ActivityDeliveryHelper.getInstance().setPackaging(resultBean.getData());
|
|
|
- gotoMainOrUnlock();
|
|
|
+ gotoScreen(START_FROM_MAIN);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void gotoMainOrUnlock() {
|
|
|
- gotoScreen(START_FROM_MAIN);
|
|
|
- }
|
|
|
-
|
|
|
private DialogBase alertDialog;
|
|
|
|
|
|
private void showErrorPopup(String errorMessage, Runnable runnable) {
|