Skip to content

Instantly share code, notes, and snippets.

@hitherejoe

hitherejoe/OnPause.java Secret

Created Mar 16, 2016
Embed
What would you like to do?
@Override
public void onPause() {
super.onPause();
if (!inPictureInPicture() && mVideoView.isPlaying()) {
if (!requestVisibleBehind(true)) {
playPause(false);
} else {
requestVisibleBehind(false);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.