Improved slider
This commit is contained in:
parent
437f73b1dc
commit
c42e9cb0df
68 changed files with 621 additions and 3401 deletions
|
@ -17,7 +17,6 @@ package code.name.monkey.retromusic.helper
|
|||
import android.os.Handler
|
||||
import android.os.Message
|
||||
|
||||
|
||||
class MusicProgressViewUpdateHelper : Handler {
|
||||
|
||||
private var callback: Callback? = null
|
||||
|
@ -54,8 +53,8 @@ class MusicProgressViewUpdateHelper : Handler {
|
|||
private fun refreshProgressViews(): Int {
|
||||
val progressMillis = MusicPlayerRemote.songProgressMillis
|
||||
val totalMillis = MusicPlayerRemote.songDurationMillis
|
||||
|
||||
callback!!.onUpdateProgressViews(progressMillis, totalMillis)
|
||||
println("$progressMillis $totalMillis")
|
||||
callback?.onUpdateProgressViews(progressMillis, totalMillis)
|
||||
|
||||
if (!MusicPlayerRemote.isPlaying) {
|
||||
return intervalPaused
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue