-
Notifications
You must be signed in to change notification settings - Fork 379
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
LeakCanary reports AudioManager leak #432
Comments
This isn't an issue in ExoMedia itself, nor is the fix something that would be owned by ExoMedia (as it requires Activity modifications). I can make the changes to the demo app though |
Yes, you are right. It's one of the Android's bugs. I just thought it would be better to change the Currently I'm using a
|
Oh, yeah I can do that; or you can change it in the |
Ok, I'll do it |
Include the following:
4.0.0-preview4
and3.1.1
Reproduction Steps
Activity
with ExoMedia video player several times when LeakCanary is enabled.This is a known issue of the Android's
AudioManager
. It was added to the LeakCanary excluded list since it was officially fixed in Android M. More info here. However, there is a fix for older API which you can find here.I've looked through the ExoMedia source code and it seems that you just need to replace this line with
i.d. the audio manager should use the application context.
Here is the LeakCanary relevant logcat snippet:
The text was updated successfully, but these errors were encountered: