Two state owner state fix

pull/184/head
M66B 4 years ago
parent 1788d04e64
commit 9518d0adc9

@ -89,11 +89,12 @@ public class TwoStateOwner implements LifecycleOwner {
void destroy() {
Lifecycle.State state = registry.getCurrentState();
if (!state.equals(Lifecycle.State.DESTROYED)) {
if (!state.equals(Lifecycle.State.CREATED))
setState(Lifecycle.State.CREATED);
if (!state.equals(Lifecycle.State.DESTROYED))
setState(Lifecycle.State.DESTROYED);
}
}
@NonNull
@Override

Loading…
Cancel
Save