Browse Source

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

hyodong.min 7 years ago
parent
commit
28ff119899
1 changed files with 2 additions and 2 deletions
  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
   @Override
   public final void start() {
   public final void start() {
     Log.w("APP#  Model | start", "| -------->> " + this.getClass().getSimpleName());
     Log.w("APP#  Model | start", "| -------->> " + this.getClass().getSimpleName());
+    watchNetwork();
     startInternal();
     startInternal();
   }
   }
 
 
   @Override
   @Override
   public final void resume() {
   public final void resume() {
     Log.w("APP# Model | resume", "| -------->> " + this.getClass().getSimpleName());
     Log.w("APP# Model | resume", "| -------->> " + this.getClass().getSimpleName());
-    watchNetwork();
     resumeInternal();
     resumeInternal();
   }
   }
 
 
   @Override
   @Override
   public final void pause() {
   public final void pause() {
     Log.w("APP#  Model | pause", "| " + this.getClass().getSimpleName() + " <<--------");
     Log.w("APP#  Model | pause", "| " + this.getClass().getSimpleName() + " <<--------");
-    stopNetworkWatching();
     pauseInternal();
     pauseInternal();
   }
   }
 
 
   @Override
   @Override
   public final void stop() {
   public final void stop() {
     Log.w("APP# Model | stop", "| " + this.getClass().getSimpleName() + " <<--------");
     Log.w("APP# Model | stop", "| " + this.getClass().getSimpleName() + " <<--------");
+    stopNetworkWatching();
     stopInternal();
     stopInternal();
   }
   }