mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01:00
Prevent crash
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user