Explorar o código

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

hyodong.min %!s(int64=7) %!d(string=hai) anos
pai
achega
28ff119899
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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();
   }