浏览代码

[공통][Bug] 네트워크 감시 시작/중지 시점 변경 resume/pause -> start/stop

hyodong.min 7 年之前
父节点
当前提交
28ff119899
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/main/java/kr/co/zumo/app/lifeplus/model/Model.java

+ 2 - 2
app/src/main/java/kr/co/zumo/app/lifeplus/model/Model.java

@@ -157,26 +157,26 @@ public abstract class Model extends ViewModel implements ILifeCycle {
   @Override
   public final void start() {
     Log.w("APP#  Model | start", "| -------->> " + this.getClass().getSimpleName());
+    watchNetwork();
     startInternal();
   }
 
   @Override
   public final void resume() {
     Log.w("APP# Model | resume", "| -------->> " + this.getClass().getSimpleName());
-    watchNetwork();
     resumeInternal();
   }
 
   @Override
   public final void pause() {
     Log.w("APP#  Model | pause", "| " + this.getClass().getSimpleName() + " <<--------");
-    stopNetworkWatching();
     pauseInternal();
   }
 
   @Override
   public final void stop() {
     Log.w("APP# Model | stop", "| " + this.getClass().getSimpleName() + " <<--------");
+    stopNetworkWatching();
     stopInternal();
   }