|
|
@@ -10,7 +10,6 @@ import kr.co.zumo.app.lifeplus.helper.ActionBarHelper;
|
|
|
import kr.co.zumo.app.lifeplus.supervisor.ScreenID;
|
|
|
import kr.co.zumo.app.lifeplus.view.DoubleChecker;
|
|
|
import kr.co.zumo.app.lifeplus.view.Event;
|
|
|
-import kr.co.zumo.app.lifeplus.view.presenter.Presenter;
|
|
|
|
|
|
/**
|
|
|
* SignUpFragmentPresenter
|
|
|
@@ -22,10 +21,9 @@ import kr.co.zumo.app.lifeplus.view.presenter.Presenter;
|
|
|
* @history 민효동 [2018. 9. 28.] [최초 작성]
|
|
|
* @since 2018. 9. 28.
|
|
|
*/
|
|
|
-public class SignUpStartPresenter extends Presenter<SignUpStartModel, ISignUpStartView> {
|
|
|
+public class SignUpStartPresenter extends SignUpBasePresenter<SignUpStartModel, ISignUpStartView> {
|
|
|
|
|
|
private DoubleChecker doubleChecker;
|
|
|
- private boolean isOnboardingStarted;
|
|
|
|
|
|
public SignUpStartPresenter(SignUpStartModel model, ISignUpStartView view) {
|
|
|
super(model, view);
|
|
|
@@ -35,10 +33,6 @@ public class SignUpStartPresenter extends Presenter<SignUpStartModel, ISignUpSta
|
|
|
this.model.requestBanners();
|
|
|
}
|
|
|
|
|
|
- public void setOnBoardingStart(){
|
|
|
- isOnboardingStarted = true;
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
protected void startInternal() {
|
|
|
getHelper(ActionBarHelper.class).setProgress(8); // 26/360
|
|
|
@@ -71,10 +65,11 @@ public class SignUpStartPresenter extends Presenter<SignUpStartModel, ISignUpSta
|
|
|
@Override
|
|
|
protected void createViewInternal() {
|
|
|
}
|
|
|
+
|
|
|
@Override
|
|
|
protected void destroyInternal() {
|
|
|
|
|
|
- if(null != doubleChecker) {
|
|
|
+ if (null != doubleChecker) {
|
|
|
doubleChecker.dispose();
|
|
|
doubleChecker = null;
|
|
|
}
|
|
|
@@ -95,11 +90,7 @@ public class SignUpStartPresenter extends Presenter<SignUpStartModel, ISignUpSta
|
|
|
|
|
|
@Override
|
|
|
public boolean onBackPressed() {
|
|
|
- if(isOnboardingStarted){
|
|
|
- home();
|
|
|
- }else{
|
|
|
- back(ScreenID.MAIN);
|
|
|
- }
|
|
|
+ backOrHome();
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
@@ -124,7 +115,7 @@ public class SignUpStartPresenter extends Presenter<SignUpStartModel, ISignUpSta
|
|
|
}
|
|
|
|
|
|
private void renderAfterReady() {
|
|
|
- view.drawBanners(getBannerItems());
|
|
|
+ view.drawBanners(getBannerItems());
|
|
|
}
|
|
|
|
|
|
/**
|