-
-
Save hitherejoe/851eb5b8a0dd33b18267 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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