This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
ConnectivityManager leak in MainActivity #3525
Comments
I believe this is rather an Android SDK issue than a Mapbox one.. |
I have created an issue on issue tracker of LeakCanary as in the AOSP issue tracker |
There is currently nothing actionable to do for us. closing. |
I have identified that this line is the problem: ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); This leak can be prevented if we replace above with: ConnectivityManager connectivityManager = (ConnectivityManager) context.getApplicationContext()
.getSystemService(Context.CONNECTIVITY_SERVICE); |
This will land in the release branch of |
This landed with 5ff95d4 in branch mentioned above. |
@tobrun thanks man , i was stuck on this problem , life saver |
ligi
added a commit
to ligi/SnackEngage
that referenced
this issue
Oct 23, 2016
ligi
added a commit
to ligi/SnackEngage
that referenced
this issue
Oct 23, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: