Remove two warnings
This commit is contained in:
parent
f27212f263
commit
2adb9ffc7e
|
@ -87,7 +87,7 @@ class LocalMediaPlayer(
|
||||||
Thread {
|
Thread {
|
||||||
Thread.currentThread().name = "MediaPlayerThread"
|
Thread.currentThread().name = "MediaPlayerThread"
|
||||||
Looper.prepare()
|
Looper.prepare()
|
||||||
mediaPlayer.setWakeMode(context, PowerManager.PARTIAL_WAKE_LOCK)
|
mediaPlayer.setWakeMode(context, PARTIAL_WAKE_LOCK)
|
||||||
mediaPlayer.setOnErrorListener { _, what, more ->
|
mediaPlayer.setOnErrorListener { _, what, more ->
|
||||||
handleError(
|
handleError(
|
||||||
Exception(
|
Exception(
|
||||||
|
@ -454,7 +454,7 @@ class LocalMediaPlayer(
|
||||||
nextMediaPlayer = null
|
nextMediaPlayer = null
|
||||||
}
|
}
|
||||||
nextMediaPlayer = MediaPlayer()
|
nextMediaPlayer = MediaPlayer()
|
||||||
nextMediaPlayer!!.setWakeMode(context, PowerManager.PARTIAL_WAKE_LOCK)
|
nextMediaPlayer!!.setWakeMode(context, PARTIAL_WAKE_LOCK)
|
||||||
|
|
||||||
setAudioAttributes(nextMediaPlayer!!)
|
setAudioAttributes(nextMediaPlayer!!)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue