Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make AndroidLifecycleScopeProvider reusable by deferring backfill to peekLifecycle #121

Merged
merged 3 commits into from
Oct 23, 2017

Conversation

ZacSweers
Copy link
Collaborator

This moves backfilling out of a one-time thing in the constructor to something we do every time the lifecycle is peeked. It feels a bit weird though, but perhaps necessary because of the fact that arch lifecycle events are emitted after the corresponding callback method.

Resolves #114, I think

This moves backfilling out of a one-time thing in the constructor to something we do every time the lifecycle is peeked. It feels a bit weird though, but perhaps necessary because of the fact that arch lifecycle events are emitted _after_ the corresponding callback method.

Resolves #114
@ZacSweers ZacSweers changed the title Make AndroidLifecycleScopeProvider reusable by backfilling from peek Make AndroidLifecycleScopeProvider reusable by deferring backfill to peekLifecycle Oct 22, 2017
@ZacSweers
Copy link
Collaborator Author

I'm going to run with this

@ZacSweers ZacSweers merged commit 31a55c5 into master Oct 23, 2017
@ZacSweers ZacSweers deleted the z/reusableLifecycle branch October 23, 2017 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants