Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created January 1, 2016 10:32
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/851eb5b8a0dd33b18267 to your computer and use it in GitHub Desktop.
Save hitherejoe/851eb5b8a0dd33b18267 to your computer and use it in GitHub Desktop.
@Override
public void onCustomAction(@NonNull String action, Bundle extras) {
if (action.equals(PlaybackOverlayFragment.CUSTOM_ACTION_LOOP)) {
if (mMediaPlayer != null && mMediaPlayer.isPlaying()) {
mMediaPlayer.setLooping(extras.getBoolean(EXTRA_IS_LOOP_ENABLED));
}
}
super.onCustomAction(action, extras);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment