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

Leak of this Lib #924

Closed
billdizl opened this issue Feb 1, 2023 · 3 comments
Closed

Leak of this Lib #924

billdizl opened this issue Feb 1, 2023 · 3 comments
Labels

Comments

@billdizl
Copy link

billdizl commented Feb 1, 2023

image
I know why, because you lib Utils.class --isOnline --method, val connectivityManager = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
val networkInfo = connectivityManager.activeNetworkInfo
return networkInfo != null && networkInfo.isConnected
use context not applicationContext, you can fix it,please.
5aa781fc8289ccbe7ae34e0874e3bfc8
5fae0b26fdbbe018a35e59b93d6d2b7a

@billdizl billdizl added the bug label Feb 1, 2023
@PierfrancescoSoffritti
Copy link
Owner

Thanks for reporting this. Feel free to send a pull request.

@PierfrancescoSoffritti
Copy link
Owner

This is fixed. Will be available in the next version of the library.

@PierfrancescoSoffritti
Copy link
Owner

Version 12.0.0 is now available.

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

No branches or pull requests

2 participants