mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Two state owner state fix
This commit is contained in:
@@ -89,10 +89,11 @@ public class TwoStateOwner implements LifecycleOwner {
|
||||
|
||||
void destroy() {
|
||||
Lifecycle.State state = registry.getCurrentState();
|
||||
if (!state.equals(Lifecycle.State.CREATED))
|
||||
setState(Lifecycle.State.CREATED);
|
||||
if (!state.equals(Lifecycle.State.DESTROYED))
|
||||
if (!state.equals(Lifecycle.State.DESTROYED)) {
|
||||
if (!state.equals(Lifecycle.State.CREATED))
|
||||
setState(Lifecycle.State.CREATED);
|
||||
setState(Lifecycle.State.DESTROYED);
|
||||
}
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
||||
Reference in New Issue
Block a user