mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 14:11:00 +00:00
Debug log
This commit is contained in:
parent
7fa99dc0a7
commit
95e12d3d26
1 changed files with 1 additions and 0 deletions
|
@ -147,6 +147,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||||
LifecycleObserver watcher = new LifecycleObserver() {
|
LifecycleObserver watcher = new LifecycleObserver() {
|
||||||
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
|
EntityLog.log(context, EntityLog.Type.Debug, "Cancelling task=" + name);
|
||||||
cancel(context);
|
cancel(context);
|
||||||
owner.getLifecycle().removeObserver(this);
|
owner.getLifecycle().removeObserver(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue