Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created March 16, 2016 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/4273818c2195b54fd29d to your computer and use it in GitHub Desktop.
Save hitherejoe/4273818c2195b54fd29d to your computer and use it in GitHub Desktop.
@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