ソースを参照

[공통][Bug] 코멘트 추가

hyodong.min 7 年 前
コミット
dde8a635d4

+ 1 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/supervisor/DialogManager.java

@@ -93,7 +93,7 @@ public class DialogManager {
         dialog.show(manager, "ALERT");
         break;
       default:
-        throw new Error("not support dialog.");
+        throw new Error("Unsupported dialog.");
     }
 
     return dialog;

+ 13 - 1
app/src/main/java/kr/co/zumo/app/lifeplus/view/Event.java

@@ -11,7 +11,8 @@ import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
 
 /**
- * 이벤트
+ * View 에서 Presenter 로 전달할 이벤트 객체
+ * Event.Builder 를 통해서만 생성이 가능하다.
  * <pre>
  * </pre>
  *
@@ -22,6 +23,10 @@ import java.lang.annotation.RetentionPolicy;
  */
 public class Event {
 
+  /***********************************
+   * Constants
+   ***********************************/
+
   public static final int NONE = -1;
   public static final int CLICK = 0;
   public static final int BACK = 1;
@@ -48,6 +53,9 @@ public class Event {
   })
   public @interface ID {}
 
+  /***********************************
+   * Object
+   ***********************************/
   private final int eventId;
   private final int integer;
   private final String string;
@@ -107,6 +115,10 @@ public class Event {
     return new Gson().fromJson(json, beanClass);
   }
 
+
+  /***********************************
+   * Builder
+   ***********************************/
   /**
    * Event 객체를 생성하기 위한 builder
    */

+ 1 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/presenter/PinPresenter.java

@@ -82,6 +82,7 @@ public class PinPresenter extends Presenter<PinModel, IPinView> {
 
         Log.i("APP# PinPresenter | execute", "|" + bean.toPrettyJson());
 
+        // todo 검증 학인 로직 필요
         if (StringUtil.isFull(bean.getReturnMessage())) {
           // 검증 완료
           view.dismissPinDialog();