diff --git a/app/src/main/java/eu/faircode/email/TwoStateOwner.java b/app/src/main/java/eu/faircode/email/TwoStateOwner.java index 05d2eedd44..64a874184f 100644 --- a/app/src/main/java/eu/faircode/email/TwoStateOwner.java +++ b/app/src/main/java/eu/faircode/email/TwoStateOwner.java @@ -10,8 +10,11 @@ import androidx.lifecycle.OnLifecycleEvent; public class TwoStateOwner implements LifecycleOwner { private LifecycleRegistry registry; + // https://developer.android.com/topic/libraries/architecture/lifecycle#lc + TwoStateOwner() { registry = new LifecycleRegistry(this); + registry.handleLifecycleEvent(Lifecycle.Event.ON_CREATE); } TwoStateOwner(LifecycleOwner owner) {