فهرست منبع

[공통][Common] 불필요 파일 제거2

Hasemi 6 سال پیش
والد
کامیت
cff46ce0c0

+ 0 - 90
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/pin/CustomPinInputPresenter.java

@@ -1,90 +0,0 @@
-/*
- * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
- */
-package kr.co.zumo.app.lifeplus.view.custom.pin;
-
-import kr.co.zumo.app.R;
-
-/**
- * CustomPinInputPresenter
- * <pre>
- * </pre>
- *
- * @author 민효동
- * @version 1.0
- * @history 민효동   [2018-11-01]   [최초 작성]
- * @since 2018-11-01
- */
-public class CustomPinInputPresenter extends CustomPinPresenter {
-
-  private boolean isResetButtonVisible;
-
-  public CustomPinInputPresenter(IPinContract.View view, boolean isResetButtonVisible, IPinContract.Listener listener) {
-    super(view, listener);
-    this.isResetButtonVisible = isResetButtonVisible;
-  }
-
-  /**
-   * 닫기 버튼 보이기 설정
-   *
-   * @return
-   */
-  protected boolean isCloseButtonVisible() {
-    return true;
-  }
-
-  /**
-   * 문의 버튼 보이기 설정
-   *
-   * @return
-   */
-  protected boolean isHelpButtonVisible() {
-    return false;
-  }
-
-  /**
-   * 재설정 버튼 보이기 설정
-   *
-   * @return
-   */
-  protected boolean isResetButtonVisible() {
-    return isResetButtonVisible;
-  }
-
-  /**
-   * 5회 입력 후 표시 문구 설정
-   *
-   * @return
-   */
-  protected int getFailGuideStringId() {
-    return R.string.pin_miss_match_guide;
-  }
-
-  /**
-   * Guide 문구 설정
-   *
-   * @return
-   */
-  protected int getGuideStringId() {
-    return R.string.confirm_pin_guide_text;
-  }
-
-  /**
-   * Title 문구 설정
-   *
-   * @return
-   */
-  protected int getTitleStringId() {
-    return R.string.confirm_pin_title_text;
-  }
-
-  /**
-   * 가이드 텍스트 기본 컬러
-   *
-   * @return
-   */
-  protected int getGuideTextColorId() {
-    return R.color.C999999;
-  }
-
-}

+ 0 - 190
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/pin/CustomPinPresenter.java

@@ -1,190 +0,0 @@
-/*
- * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
- */
-package kr.co.zumo.app.lifeplus.view.custom.pin;
-
-import java.util.concurrent.TimeUnit;
-
-import io.reactivex.Completable;
-import io.reactivex.android.schedulers.AndroidSchedulers;
-import io.reactivex.disposables.CompositeDisposable;
-import kr.co.zumo.app.R;
-import kr.co.zumo.app.lifeplus.model.SuperModel;
-import kr.co.zumo.app.lifeplus.util.ResourceUtil;
-
-/**
- * CustomPinPresenter
- * <pre>
- * </pre>
- *
- * @author 민효동
- * @version 1.0
- * @history 민효동   [2018-10-04]   [최초 작성]
- * @since 2018-10-04
- */
-public abstract class CustomPinPresenter implements IPinContract.Presenter {
-
-  protected IPinContract.View view;
-  protected IPinContract.Listener listener;
-  protected String pin;
-  protected int matchCount;
-  protected CompositeDisposable disposable = new CompositeDisposable();
-
-  public CustomPinPresenter(IPinContract.View view, IPinContract.Listener listener) {
-    this.view = view;
-    this.listener = listener;
-  }
-
-  /**
-   * 닫기 버튼 보이기 설정
-   *
-   * @return
-   */
-  protected abstract boolean isCloseButtonVisible();
-
-  /**
-   * 문의 버튼 보이기 설정
-   *
-   * @return
-   */
-  protected abstract boolean isHelpButtonVisible();
-
-  /**
-   * 재설정 버튼 보이기 설정
-   *
-   * @return
-   */
-  protected abstract boolean isResetButtonVisible();
-
-  /**
-   * 5회 입력 후 표시 문구 설정
-   *
-   * @return
-   */
-  protected abstract int getFailGuideStringId();
-
-
-  /**
-   * Guide 문구 설정
-   *
-   * @return
-   */
-  protected abstract int getGuideStringId();
-
-  /**
-   * Title 문구 설정
-   *
-   * @return
-   */
-  protected abstract int getTitleStringId();
-
-  /**
-   * 가이드 텍스트 기본 컬러
-   *
-   * @return
-   */
-  protected abstract int getGuideTextColorId();
-
-  @Override
-  public final void start() {
-    this.view.setPresenter(this);
-  }
-
-  @Override
-  public final void onPinStart() {
-    view.setCloseButtonVisible(isCloseButtonVisible());
-    view.setHelpButtonVisible(isHelpButtonVisible());
-    view.setResetButtonVisible(isResetButtonVisible());
-    view.updateGuideTextColor(ResourceUtil.getColor(getGuideTextColorId()));
-    view.updateGuideText(getGuideStringId());
-    view.updateTitleText(getTitleStringId());
-    view.restart();
-
-    matchCount = getPinFailCount();
-    if (matchCount > 0) {
-      --matchCount;
-      retry();
-    }
-  }
-
-  @Override
-  public final void onPinResult(String result) {
-    view.setDisabled();
-    onPinResultInternal(result);
-  }
-
-  protected void onPinResultInternal(String result) {
-    listener.onPinResult(result);
-  }
-
-  @Override
-  public final void onClickPinReset() {
-    listener.onClickPinReset();
-  }
-
-  @Override
-  public final void onClickClose() {
-    listener.onClickClose();
-  }
-
-  @Override
-  public final void retry() {
-    retryInternal();
-  }
-
-  protected void retryInternal() {
-    // 일치 하지 않으면 5회 재시도 후
-    if (++matchCount < 5) {
-      setPinFailCount(matchCount);
-      view.updateGuideTextColor(ResourceUtil.getColor(R.color.CF12815));
-      view.updateGuideText(String.format(ResourceUtil.getString(R.string.pin_miss_match_error_repeat), matchCount));
-      view.restart();
-    }
-    else {
-      setPinFailCount(matchCount);
-          /*
-           5회 이상 불일치 시 ‘간편암호가 5회이상 일치하지 않아, 입력값이 초기화됩니다.’ 밸리데이션 문구 1초간 노출
-          - 입력값 초기화된 상태로 STEP1로 변경
-           */
-      view.updateGuideTextColor(ResourceUtil.getColor(R.color.CF12815));
-      view.updateGuideText(getFailGuideStringId());
-
-      view.setDisabled();
-      disposable.add(
-        Completable.timer(1000, TimeUnit.MILLISECONDS, AndroidSchedulers.mainThread())
-          .subscribe(() -> {
-
-            pin = null;
-            listener.onPinFail();
-
-          }, Throwable::printStackTrace)
-      );
-    }
-  }
-
-  @Override
-  public final void onClickHelp() {
-    listener.onPinHelp();
-  }
-
-  @Override
-  public final void resetPinFailCount() {
-    setPinFailCount(0);
-  }
-
-  @Override
-  public final void dispose() {
-    if (null != disposable) {
-      disposable.dispose();
-      disposable = null;
-    }
-  }
-
-  void setPinFailCount(int count) {
-    SuperModel.getInstance().getPreferences().setPinFailCount(count);
-  }
-
-  private int getPinFailCount() {
-    return SuperModel.getInstance().getPreferences().getPinFailCount();
-  }
-}

+ 0 - 94
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/pin/CustomPinRegisterPresenter.java

@@ -1,94 +0,0 @@
-/*
- * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
- */
-package kr.co.zumo.app.lifeplus.view.custom.pin;
-
-import kr.co.zumo.app.R;
-import kr.co.zumo.app.lifeplus.util.ResourceUtil;
-import kr.co.zumo.app.lifeplus.util.StringUtil;
-
-/**
- * CustomPinRegisterPresenter
- * <pre>
- * </pre>
- *
- * @author 민효동
- * @version 1.0
- * @history 민효동   [2018-10-04]   [최초 작성]
- * @since 2018-10-04
- */
-public class CustomPinRegisterPresenter extends CustomPinPresenter {
-
-  public CustomPinRegisterPresenter(IPinContract.View view, IPinContract.Listener listener) {
-    super(view, listener);
-  }
-
-  @Override
-  protected final boolean isCloseButtonVisible() {
-    return false;
-  }
-
-  @Override
-  protected final boolean isHelpButtonVisible() {
-    return false;
-  }
-
-  @Override
-  protected final boolean isResetButtonVisible() {
-    return false;
-  }
-
-  @Override
-  protected final int getFailGuideStringId() {
-    return R.string.pin_miss_match_init;
-  }
-
-  @Override
-  protected final int getGuideStringId() {
-    return R.string.sign_up_register_pin;
-  }
-
-  @Override
-  protected int getTitleStringId() {
-    return R.string.sign_up_register_pin_title;
-  }
-
-  @Override
-  protected final int getGuideTextColorId() {
-    return R.color.C999999;
-  }
-
-  @Override
-  protected final void retryInternal() {
-    // nothing
-  }
-
-  protected int getGuideRepeatStringId() {
-    return R.string.sign_up_register_pin_again;
-  }
-
-  @Override
-  protected final void onPinResultInternal(String result) {
-    view.setDisabled();
-    if (StringUtil.isFull(pin)) {
-      // 두 번째 등록
-      // 일치하는지 확인
-      if (pin.length() == 4 && pin.equals(result)) {
-        // 일치 하면 모델에 저장
-        setPinFailCount(0);
-        listener.onPinResult(pin);
-      }
-      else {
-        super.retryInternal();
-      }
-    }
-    else {
-      // 처음 입력;
-      matchCount = 0;
-      pin = result;
-      view.updateGuideTextColor(ResourceUtil.getColor(R.color.C999999));
-      view.updateGuideText(getGuideRepeatStringId());
-      view.restart();
-    }
-  }
-}

+ 0 - 32
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/pin/CustomPinResetPresenter.java

@@ -1,32 +0,0 @@
-/*
- * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
- */
-package kr.co.zumo.app.lifeplus.view.custom.pin;
-
-import kr.co.zumo.app.R;
-
-/**
- * CustomPinResetPresenter
- * <pre>
- * </pre>
- *
- * @author 민효동
- * @version 1.0
- * @history 민효동   [2018-10-04]   [최초 작성]
- * @since 2018-10-04
- */
-public class CustomPinResetPresenter extends CustomPinRegisterPresenter {
-
-  public CustomPinResetPresenter(IPinContract.View view, IPinContract.Listener listener) {
-    super(view, listener);
-  }
-
-  @Override
-  protected int getTitleStringId() {
-    return R.string.pin_code_reset;
-  }
-
-  protected int getGuideRepeatStringId() {
-    return R.string.pin_code_again_message;
-  }
-}

+ 0 - 88
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/pin/CustomPinUnlockPresenter.java

@@ -1,88 +0,0 @@
-/*
- * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
- */
-package kr.co.zumo.app.lifeplus.view.custom.pin;
-
-import kr.co.zumo.app.R;
-
-/**
- * CustomPinUnlockPresenter
- * <pre>
- * </pre>
- *
- * @author 민효동
- * @version 1.0
- * @history 민효동   [2018-10-04]   [최초 작성]
- * @since 2018-10-04
- */
-public class CustomPinUnlockPresenter extends CustomPinPresenter {
-
-  public CustomPinUnlockPresenter(IPinContract.View view, IPinContract.Listener listener) {
-    super(view, listener);
-  }
-
-  /**
-   * 닫기 버튼 보이기 설정
-   *
-   * @return
-   */
-  protected boolean isCloseButtonVisible() {
-    return false;
-  }
-
-  /**
-   * 문의 버튼 보이기 설정
-   *
-   * @return
-   */
-  protected boolean isHelpButtonVisible() {
-    return true;
-  }
-
-  /**
-   * 재설정 버튼 보이기 설정
-   *
-   * @return
-   */
-  protected boolean isResetButtonVisible() {
-    return true;
-  }
-
-  /**
-   * 5회 입력 후 표시 문구 설정
-   *
-   * @return
-   */
-  protected int getFailGuideStringId() {
-    return R.string.pin_miss_match_guide;
-  }
-
-  /**
-   * Guide 문구 설정
-   *
-   * @return
-   */
-  protected int getGuideStringId() {
-    return R.string.login_input_pin;
-  }
-
-  /**
-   * Title 문구 설정
-   *
-   * @return
-   */
-  protected int getTitleStringId() {
-    return R.string.pin_unlock;
-  }
-
-  /**
-   * 가이드 텍스트 기본 컬러
-   *
-   * @return
-   */
-  protected int getGuideTextColorId() {
-    return R.color.C999999;
-  }
-
-
-}

+ 0 - 301
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/pin/CustomPinView.java

@@ -1,301 +0,0 @@
-/*
- * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
- */
-package kr.co.zumo.app.lifeplus.view.custom.pin;
-
-import android.content.Context;
-import android.support.annotation.StringRes;
-import android.support.constraint.ConstraintLayout;
-import android.util.AttributeSet;
-import android.util.Log;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.widget.ImageButton;
-import android.widget.ImageView;
-import android.widget.TextView;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import kr.co.zumo.app.R;
-import kr.co.zumo.app.lifeplus.util.ResourceUtil;
-import kr.co.zumo.app.lifeplus.util.StringUtil;
-
-/**
- * PinView
- * <pre>
- * </pre>
- *
- * @author 민효동
- * @version 1.0
- * @history 민효동   [2018-10-04]   [최초 작성]
- * @since 2018-10-04
- */
-public class CustomPinView extends ConstraintLayout implements IPinContract.View {
-
-  private List<Integer> numberList;
-  private List<TextView> buttonList;
-  private List<ImageView> imageList;
-  private String password;
-  private String guideString = "";
-  @StringRes
-  private int titleStringId = R.string.empty_string;
-
-  private TextView textGuide;
-  private TextView textTitle;
-  private TextView textReset;
-  private TextView buttonShuffle;
-  private ImageButton buttonDelete;
-  private ImageView imageClose;
-  private View viewHelp;
-
-  private IPinContract.Presenter presenter;
-
-  public void setPresenter(IPinContract.Presenter presenter) {
-    this.presenter = presenter;
-
-    this.presenter.onPinStart();
-  }
-
-  public CustomPinView(Context context) {
-    super(context);
-    init(context);
-  }
-
-  public CustomPinView(Context context, AttributeSet attrs) {
-    super(context, attrs);
-    init(context);
-  }
-
-  public CustomPinView(Context context, AttributeSet attrs, int defStyleAttr) {
-    super(context, attrs, defStyleAttr);
-    init(context);
-  }
-
-  private void init(Context context) {
-
-    LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
-    inflater.inflate(R.layout.pin_view, this);
-
-    password = "";
-
-    View view = this;
-
-//    view.setPadding(0, ResourceUtil.getStatusBarHeightManual(), 0,0);
-
-    buttonShuffle = view.findViewById(R.id.button_shuffle);
-    buttonDelete = view.findViewById(R.id.button_delete);
-    textGuide = view.findViewById(R.id.text_guide);
-    textTitle = view.findViewById(R.id.text_title);
-    textReset = view.findViewById(R.id.button_sign_up_pin_code_reset);
-    imageClose = view.findViewById(R.id.image_close);
-    viewHelp = view.findViewById(R.id.button_help);
-
-    if (StringUtil.isFull(guideString)) {
-      textGuide.setText(guideString);
-    }
-
-    if (R.string.empty_string != titleStringId) {
-      textTitle.setText(titleStringId);
-    }
-
-    imageClose.setOnClickListener(v -> {
-      presenter.onClickClose();
-    });
-
-    viewHelp.setOnClickListener(v -> {
-      presenter.onClickHelp();
-    });
-
-    numberList = new ArrayList<>(Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9));
-    buttonList = createButtonListFromView(view);
-    imageList = createImageListFromView(view);
-
-    buttonShuffle.setOnClickListener(v -> shuffleKeyboard());
-
-    buttonDelete.setOnClickListener(v -> doSomeAfterClickDeleteButton());
-
-    textReset.setOnClickListener(v -> presenter.onClickPinReset());
-
-    int size = buttonList.size();
-    for (int i = 0; i < size; ++i) {
-      buttonList.get(i).setOnClickListener(v -> doSomeAfterClickNumberButton(v));
-    }
-
-  }
-
-  /***********************************
-   * IPinContract.View
-   ***********************************/
-
-  private List<TextView> createButtonListFromView(View view) {
-    ArrayList<TextView> list = new ArrayList<>();
-    list.add(view.findViewById(R.id.button_0));
-    list.add(view.findViewById(R.id.button_1));
-    list.add(view.findViewById(R.id.button_2));
-    list.add(view.findViewById(R.id.button_3));
-    list.add(view.findViewById(R.id.button_4));
-    list.add(view.findViewById(R.id.button_5));
-    list.add(view.findViewById(R.id.button_6));
-    list.add(view.findViewById(R.id.button_7));
-    list.add(view.findViewById(R.id.button_8));
-    list.add(view.findViewById(R.id.button_9));
-
-    return list;
-  }
-
-  private List<ImageView> createImageListFromView(View view) {
-    ArrayList<ImageView> list = new ArrayList<>();
-    list.add(view.findViewById(R.id.image_pin_code1));
-    list.add(view.findViewById(R.id.image_pin_code2));
-    list.add(view.findViewById(R.id.image_pin_code3));
-    list.add(view.findViewById(R.id.image_pin_code4));
-    return list;
-  }
-
-
-  private void shuffleKeyboard() {
-
-    Collections.shuffle(numberList);
-    int size = buttonList.size();
-
-    for (int i = 0; i < size; ++i) {
-      buttonList.get(i).setText(String.valueOf(numberList.get(i)));
-    }
-  }
-
-  private void doSomeAfterAllPinCode() {
-    String pin = password;
-    password = "";
-
-    presenter.onPinResult(pin);
-  }
-
-  private void doSomeAfterClickDeleteButton() {
-    if (password.length() == 0) {
-      return;
-    }
-
-    password = password.substring(0, password.length() - 1);
-    updateImageAfterPinInput();
-
-  }
-
-  private void doSomeAfterClickNumberButton(View view) {
-
-    int passwordSize = password.length();
-
-    if (passwordSize < 4) {
-      password += ((TextView) view).getText().toString().charAt(0);
-
-      updateImageAfterPinInput();
-
-      passwordSize = password.length();
-      if (passwordSize == 4) {
-        Log.e("APP#  PinDialog | onClick", "|" + "if(password.length == 4)");
-        doSomeAfterAllPinCode();
-      }
-    }
-  }
-
-  private void updateImageAfterPinInput() {
-    int passwordSize = password.length();
-    for (int i = 0; i < imageList.size(); ++i) {
-      ImageView imageView = imageList.get(i);
-      if (i < passwordSize) {
-        imageView.setImageResource(R.drawable.circle_c000000);
-      }
-      else {
-        imageView.setImageResource(R.drawable.circle_ce5e5e5);
-      }
-    }
-  }
-
-  /**
-   * 가이드 텍스트를 업데이트 한다.
-   *
-   * @param stringId
-   */
-  public void updateGuideText(@StringRes int stringId) {
-    guideString = ResourceUtil.getString(stringId);
-
-    if (null != textGuide) {
-      textGuide.setText(guideString);
-    }
-  }
-
-  @Override
-  public void updateGuideTextColor(int color) {
-    textGuide.setTextColor(color);
-  }
-
-  @Override
-  public void setResetButtonVisible(boolean isVisible) {
-    textReset.setVisibility(isVisible ? View.VISIBLE : View.INVISIBLE);
-  }
-
-  @Override
-  public void setCloseButtonVisible(boolean isVisible) {
-    imageClose.setVisibility(isVisible ? View.VISIBLE : View.GONE);
-  }
-
-  @Override
-  public void setHelpButtonVisible(boolean isVisible) {
-    viewHelp.setVisibility(isVisible ? View.VISIBLE : View.GONE);
-  }
-
-  @Override
-  public void updateGuideText(String str) {
-
-    if (null != textGuide) {
-      textGuide.setText(str);
-    }
-  }
-
-  /**
-   * title 텍스트를 업데이트 한다.
-   *
-   * @param stringId
-   */
-  public void updateTitleText(@StringRes int stringId) {
-    titleStringId = stringId;
-
-    if (null != textTitle) {
-      textTitle.setText(titleStringId);
-    }
-  }
-
-  @Override
-  public void setEnabled() {
-    setEnabledInternal(true);
-  }
-
-  @Override
-  public void setDisabled() {
-    setEnabledInternal(false);
-  }
-
-  @Override
-  public void restart() {
-    shuffleKeyboard();
-    updateImageAfterPinInput();
-    setEnabledInternal(true);
-  }
-
-  private void setEnabledInternal(boolean enabled) {
-    buttonDelete.setEnabled(enabled);
-    buttonShuffle.setEnabled(enabled);
-    for (TextView button : buttonList) {
-      button.setEnabled(enabled);
-    }
-    for (ImageView imageView : imageList) {
-      imageView.setEnabled(enabled);
-    }
-  }
-
-  @Override
-  public void dispose() {
-  }
-}

+ 0 - 168
app/src/main/java/kr/co/zumo/app/lifeplus/view/custom/pin/IPinContract.java

@@ -1,168 +0,0 @@
-/*
- * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
- */
-package kr.co.zumo.app.lifeplus.view.custom.pin;
-
-import android.support.annotation.StringRes;
-
-/**
- * IPinContract
- * <pre>
- * </pre>
- *
- * @author 민효동
- * @version 1.0
- * @history 민효동   [2018-10-04]   [최초 작성]
- * @since 2018-10-04
- */
-public interface IPinContract {
-
-  interface View {
-    /**
-     * Presenter 지정
-     *
-     * @param presenter
-     */
-    void setPresenter(IPinContract.Presenter presenter);
-
-    /**
-     * 활성화
-     */
-    void setEnabled();
-
-    /**
-     * 비활성화
-     */
-    void setDisabled();
-
-    /**
-     * 다시 시작
-     */
-    void restart();
-
-    /**
-     * 가이드 텍스트를 업데이트 한다.
-     *
-     * @param stringId
-     */
-    void updateGuideText(@StringRes int stringId);
-
-    /**
-     * 가이드 텍스트를 업데이트 한다.
-     *
-     * @param str
-     */
-    void updateGuideText(String str);
-
-    /**
-     * @param color
-     */
-    void updateGuideTextColor(int color);
-
-    /**
-     * title 텍스트를 업데이트 한다.
-     *
-     * @param stringId
-     */
-    void updateTitleText(@StringRes int stringId);
-
-    /**
-     * 암호 재설정 버튼 표시;
-     *
-     * @param isVisible
-     */
-    void setResetButtonVisible(boolean isVisible);
-
-    /**
-     * close 버튼 표시;
-     *
-     * @param isVisible
-     */
-    void setCloseButtonVisible(boolean isVisible);
-
-    /**
-     * help 버튼 표시;
-     *
-     * @param isVisible
-     */
-    void setHelpButtonVisible(boolean isVisible);
-
-    void dispose();
-  }
-
-  interface Presenter {
-    /**
-     * 뷰 시작 할 때
-     */
-    void onPinStart();
-
-    /**
-     * 핀 입력 완료했을 때
-     *
-     * @param result "1234"
-     */
-    void onPinResult(String result);
-
-    /**
-     * 재설정 버튼 눌렀을 때
-     */
-    void onClickPinReset();
-
-    /**
-     * close 버튼 눌렀을 때
-     */
-    void onClickClose();
-
-    /**
-     * 핀 입력 재시도
-     */
-    void retry();
-
-    /**
-     * 핀 문의
-     */
-    void onClickHelp();
-
-    /**
-     * start
-     */
-    void start();
-
-    void dispose();
-
-    /**
-     * 핀 입력 오류 수를 리셋
-     */
-    void resetPinFailCount();
-  }
-
-  interface Listener {
-    /**
-     * 핀 입력 및 검증 완료했을 때
-     *
-     * @param result "1234"
-     */
-    void onPinResult(String result);
-
-    /**
-     * 재설정 버튼 눌렀을 때
-     */
-    void onClickPinReset();
-
-    /**
-     * close 버튼 눌렀을 때
-     */
-    void onClickClose();
-
-    /**
-     * 핀 입력 실패
-     * - 2회 자체 검증 실패 시
-     */
-    void onPinFail();
-
-    /**
-     * 핀 문의
-     */
-    void onPinHelp();
-  }
-}

+ 0 - 141
app/src/main/java/kr/co/zumo/app/lifeplus/view/dialog/PinConfirmDialog.java

@@ -1,141 +0,0 @@
-/*
- * COPYRIGHT (c) 2018 All rights reserved by HANWHA LIFE.
- */
-package kr.co.zumo.app.lifeplus.view.dialog;
-
-import android.os.Bundle;
-import android.support.annotation.NonNull;
-import android.support.annotation.Nullable;
-import android.util.Log;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-
-import kr.co.zumo.app.R;
-import kr.co.zumo.app.lifeplus.util.ResourceUtil;
-import kr.co.zumo.app.lifeplus.view.Event;
-import kr.co.zumo.app.lifeplus.view.custom.pin.CustomPinInputPresenter;
-import kr.co.zumo.app.lifeplus.view.custom.pin.CustomPinView;
-import kr.co.zumo.app.lifeplus.view.custom.pin.IPinContract;
-
-/**
- * PinConfirmDialog
- * <pre>
- *   핀 입력이 완료되면 onDialogResult(this, Event.string(pin)) 으로 입력 값이 전달된다.
- * </pre>
- *
- * @author 민효동
- * @version 1.0
- * @history 민효동   [2018. 11. 1.]   [최초 작성]
- * @since 2018. 11. 1.
- */
-public class PinConfirmDialog extends DialogBase<ICustomDialogListener<PinConfirmDialog>> {
-
-  private CustomPinView customPinView;
-  private IPinContract.Presenter pinPresenter;
-  private boolean isResetButtonVisible;
-
-  public static final int USER_INFORMATION = 0;
-  public static final int USER_QUIT = 1;
-  public static final int COUPON_MALL = 2;
-
-  @Override
-  public void onDestroyView() {
-    super.onDestroyView();
-
-    if (null != customPinView) {
-      customPinView.dispose();
-      customPinView = null;
-    }
-    if (null != pinPresenter) {
-      pinPresenter.dispose();
-      pinPresenter = null;
-    }
-  }
-
-
-  @Nullable
-  @Override
-  public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
-    return inflater.inflate(R.layout.view_container, container, false);
-  }
-
-  @Override
-  protected void onActivityCreatedInternal() {
-    applyAnimation();
-
-    applyFullScreen();
-
-    getView().setPadding(0, ResourceUtil.getStatusBarHeightManual(), 0, ResourceUtil.getNavBarHeight());
-
-    customPinView = new CustomPinView(getContext());
-    pinPresenter = new CustomPinInputPresenter(customPinView, isResetButtonVisible, new IPinContract.Listener() {
-      @Override
-      public void onPinResult(String result) {
-        if (null != getCustomListener()) {
-          getCustomListener().onDialogResult(PinConfirmDialog.this, new Event.Builder(Event.CONFIRM).string(result).build());
-        }
-      }
-
-      @Override
-      public void onClickPinReset() {
-        if (null != getCustomListener()) {
-          Log.e("APP#  PinConfirmDialog | onClickPinReset", "|");
-          getCustomListener().onDialogResult(PinConfirmDialog.this, new Event.Builder(Event.RESET).build());
-        }
-      }
-
-      @Override
-      public void onClickClose() {
-        if (null != getCustomListener()) {
-          getCustomListener().onDialogCanceled(PinConfirmDialog.this);
-        }
-      }
-
-      @Override
-      public void onPinFail() {
-        if (null != getCustomListener()) {
-          getCustomListener().onDialogResult(PinConfirmDialog.this, new Event.Builder(Event.FAIL).build());
-        }
-      }
-
-      @Override
-      public void onPinHelp() {
-        if (null != getCustomListener()) {
-          getCustomListener().onDialogResult(PinConfirmDialog.this, new Event.Builder(Event.HELP).build());
-        }
-      }
-    });
-    pinPresenter.start();
-
-    View parent = getView();
-    ViewGroup layout = parent.findViewById(R.id.container);
-    ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
-    layout.addView(customPinView, params);
-  }
-
-  /**
-   * 핀 입력 재시도
-   * - 5회 실패 시 onPinFail() 발생하여 Event.FAIL 이 전달된다.
-   */
-  public void retry() {
-    pinPresenter.retry();
-  }
-
-  /**
-   * 리셋 버튼 표시 여부 결정;
-   *
-   * @param isVisible
-   */
-  public void setResetButtonVisible(boolean isVisible) {
-    isResetButtonVisible = isVisible;
-  }
-
-  /**
-   * 핀 입력 오류 수 초기화
-   */
-  public void resetPinFailCount() {
-    Log.e("APP#  PinConfirmDialog | resetPinFailCount", "|" + "resetPinFailCount");
-    pinPresenter.resetPinFailCount();
-  }
-}