Added TargetApi to setNextMediaPlayer per #185. This fixes a lint error
This commit is contained in:
parent
522a58b068
commit
d413384f90
@ -18,10 +18,13 @@
|
||||
|
||||
package ch.blinkenlights.android.vanilla;
|
||||
|
||||
import android.annotation.TargetApi;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.media.MediaPlayer;
|
||||
import android.media.audiofx.AudioEffect;
|
||||
import android.os.Build;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class VanillaMediaPlayer extends MediaPlayer {
|
||||
@ -74,6 +77,7 @@ public class VanillaMediaPlayer extends MediaPlayer {
|
||||
/**
|
||||
* Sets the next media player data source
|
||||
*/
|
||||
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
|
||||
public void setNextMediaPlayer(VanillaMediaPlayer next) {
|
||||
super.setNextMediaPlayer(next);
|
||||
mHasNextMediaPlayer = (next != null);
|
||||
|
Loading…
x
Reference in New Issue
Block a user