Nullability checks in ExoPlayerWrapper
This commit is contained in:
parent
7a3bb825ed
commit
0172a5db13
|
@ -105,8 +105,10 @@ public class ExoPlayerWrapper implements IPlayer {
|
|||
|
||||
@Override
|
||||
public void onSeekProcessed() {
|
||||
if (audioSeekCompleteListener != null) {
|
||||
audioSeekCompleteListener.onSeekComplete(null);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -174,8 +176,10 @@ public class ExoPlayerWrapper implements IPlayer {
|
|||
@Override
|
||||
public void seekTo(int i) throws IllegalStateException {
|
||||
exoPlayer.seekTo(i);
|
||||
if (audioSeekCompleteListener != null) {
|
||||
audioSeekCompleteListener.onSeekComplete(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAudioStreamType(int i) {
|
||||
|
|
Loading…
Reference in New Issue