MCPcopy Create free account
hub / github.com/M66B/FairEmail / onDestroyed

Method onDestroyed

app/src/main/java/eu/faircode/email/AdapterLog.java:94–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92
93 owner.getLifecycle().addObserver(new LifecycleObserver() {
94 @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
95 public void onDestroyed() {
96 Log.d(AdapterLog.this + " parent destroyed");
97 AdapterLog.this.parentFragment = null;
98 owner.getLifecycle().removeObserver(this);
99 }
100 });
101 }
102

Callers

nothing calls this directly

Calls 3

dMethod · 0.95
removeObserverMethod · 0.45
getLifecycleMethod · 0.45

Tested by

no test coverage detected