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

Fix rmonitoring status #19

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Fix rmonitoring status #19

merged 3 commits into from
Jun 18, 2024

Conversation

jordond
Copy link
Owner

@jordond jordond commented Jun 17, 2024

references #18

@jordond jordond added this to the 1.1.1 milestone Jun 17, 2024
@jordond jordond changed the title Fix recomposition for compose-http Fix rmonitoring status Jun 18, 2024
@jordond jordond merged commit bb338db into main Jun 18, 2024
5 checks passed
@jordond jordond deleted the fix/compose branch June 18, 2024 17:36
private fun ConnectivityManager.initialStatus(): Connectivity.Status {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
activeNetwork?.let { network ->
getNetworkCapabilities(network)?.let { capabilities ->

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be blocking I think? AFAIK, there's a callback version of this that you can use, and it'd be safe to do so since you added a try/finally block.

This pull request was closed.
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 this pull request may close these issues.

2 participants