Skip to content

Commit

Permalink
Use C.TIME_UNSET instead of -1 for unknown duration
Browse files Browse the repository at this point in the history
  • Loading branch information
fstanis authored Dec 6, 2022
1 parent 22e5ed9 commit 296d7ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import com.example.android.uamp.media.extensions.mediaUri
import com.example.android.uamp.media.extensions.title
import com.example.android.uamp.media.extensions.trackCount
import com.example.android.uamp.media.extensions.trackNumber
import com.google.android.exoplayer2.C
import com.google.gson.Gson
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
Expand Down Expand Up @@ -221,6 +222,6 @@ class JsonMusic {
var image: String = ""
var trackNumber: Long = 0
var totalTrackCount: Long = 0
var duration: Long = -1
var duration: Long = C.TIME_UNSET
var site: String = ""
}

0 comments on commit 296d7ff

Please sign in to comment.