|
|
@ -72,16 +72,6 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_START)
|
|
|
|
|
|
|
|
public void onStart() {
|
|
|
|
|
|
|
|
Log.i("Start task " + this);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_STOP)
|
|
|
|
|
|
|
|
public void onStop() {
|
|
|
|
|
|
|
|
Log.i("Stop task " + this);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
|
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
|
|
|
|
public void onResume() {
|
|
|
|
public void onResume() {
|
|
|
|
Log.i("Resume task " + this);
|
|
|
|
Log.i("Resume task " + this);
|
|
|
@ -99,11 +89,6 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
|
|
|
paused = true;
|
|
|
|
paused = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
|
|
|
|
|
|
|
|
public void onCreated() {
|
|
|
|
|
|
|
|
Log.i("Created task " + this);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
|
|
|
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
|
|
|
public void onDestroyed() {
|
|
|
|
public void onDestroyed() {
|
|
|
|
Log.i("Destroy task " + this);
|
|
|
|
Log.i("Destroy task " + this);
|
|
|
|