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

registerForActivityResult should be scalled before your activity is created #1

Closed
cempo opened this issue Oct 7, 2022 · 3 comments · Fixed by #2
Closed

registerForActivityResult should be scalled before your activity is created #1

cempo opened this issue Oct 7, 2022 · 3 comments · Fixed by #2

Comments

@cempo
Copy link

cempo commented Oct 7, 2022

I'm getting error when launch a picker

LifecycleOwner MyActivity is attempting to register while current state is RESUMED. LifecycleOwners must call register before they are STARTED.

Reason: Related to android documentation, registerForActivityResult() is safe to call before your fragment or activity is created

How to do it for this library?

@Atwa
Copy link
Owner

Atwa commented Oct 7, 2022

@cempo Thanks for raising this, I will work on that bug.

@cempo
Copy link
Author

cempo commented Oct 9, 2022

Works correct. Thank you

@Atwa
Copy link
Owner

Atwa commented Oct 10, 2022

Works correct. Thank you

Your welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants