I have a
ViewPager with multiple fragments. In one
Fragment I play audio. When I swipe to another fragment I want to stop the audio playback. How do I detect that the another fragment is now visible in the
I've tried overriding
onHiddenChanged. No success. There must be some "you're not active anymore" method to override. No?