mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 02:28:18 +00:00
Fixed two state logging
This commit is contained in:
parent
76c60fa95e
commit
925e7e2689
1 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ public class TwoStateOwner implements LifecycleOwner {
|
||||||
owner.getLifecycle().addObserver(new LifecycleObserver() {
|
owner.getLifecycle().addObserver(new LifecycleObserver() {
|
||||||
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
||||||
public void onDestroyed() {
|
public void onDestroyed() {
|
||||||
Log.i(this + " parent destroyed");
|
Log.i(TwoStateOwner.this + " parent destroyed");
|
||||||
owned = false;
|
owned = false;
|
||||||
destroy();
|
destroy();
|
||||||
owner.getLifecycle().removeObserver(this);
|
owner.getLifecycle().removeObserver(this);
|
||||||
|
@ -83,7 +83,7 @@ public class TwoStateOwner implements LifecycleOwner {
|
||||||
registry.addObserver(new LifecycleObserver() {
|
registry.addObserver(new LifecycleObserver() {
|
||||||
@OnLifecycleEvent(Lifecycle.Event.ON_ANY)
|
@OnLifecycleEvent(Lifecycle.Event.ON_ANY)
|
||||||
public void onAny() {
|
public void onAny() {
|
||||||
Log.i(this + " " + registry);
|
Log.i(TwoStateOwner.this + " " + registry);
|
||||||
changed = new Date().getTime();
|
changed = new Date().getTime();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -93,7 +93,7 @@ public class TwoStateOwner implements LifecycleOwner {
|
||||||
list.add(this);
|
list.add(this);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
Log.e(this + " not owned");
|
Log.e(TwoStateOwner.this + " not owned");
|
||||||
}
|
}
|
||||||
|
|
||||||
void start() {
|
void start() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue