mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 16:40:53 +01:00
Updated libraries
This commit is contained in:
@@ -62,15 +62,15 @@ public class TwoStateOwner implements LifecycleOwner {
|
||||
}
|
||||
});
|
||||
|
||||
registry.markState(Lifecycle.State.CREATED);
|
||||
registry.setCurrentState(Lifecycle.State.CREATED);
|
||||
}
|
||||
|
||||
void start() {
|
||||
registry.markState(Lifecycle.State.STARTED);
|
||||
registry.setCurrentState(Lifecycle.State.STARTED);
|
||||
}
|
||||
|
||||
void stop() {
|
||||
registry.markState(Lifecycle.State.CREATED);
|
||||
registry.setCurrentState(Lifecycle.State.CREATED);
|
||||
}
|
||||
|
||||
void restart() {
|
||||
@@ -86,9 +86,9 @@ public class TwoStateOwner implements LifecycleOwner {
|
||||
void destroy() {
|
||||
Lifecycle.State state = registry.getCurrentState();
|
||||
if (!state.equals(Lifecycle.State.CREATED))
|
||||
registry.markState(Lifecycle.State.CREATED);
|
||||
registry.setCurrentState(Lifecycle.State.CREATED);
|
||||
if (!state.equals(Lifecycle.State.DESTROYED))
|
||||
registry.markState(Lifecycle.State.DESTROYED);
|
||||
registry.setCurrentState(Lifecycle.State.DESTROYED);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
||||
Reference in New Issue
Block a user