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