Fix lint issues.

This commit is contained in:
Isira Seneviratne 2023-02-08 06:31:01 +05:30
parent 2321ed22f1
commit df565bb8da
2 changed files with 4 additions and 2 deletions

View File

@ -297,7 +297,9 @@ class BackgroundMode : LifecycleService() {
val uri = if (streams.audioStreams.isNotEmpty()) { val uri = if (streams.audioStreams.isNotEmpty()) {
PlayerHelper.getAudioSource(this, streams.audioStreams) PlayerHelper.getAudioSource(this, streams.audioStreams)
} else streams.hls ?: return } else {
streams.hls ?: return
}
val mediaItem = MediaItem.Builder() val mediaItem = MediaItem.Builder()
.setUri(uri) .setUri(uri)

View File

@ -244,7 +244,7 @@ class DownloadService : LifecycleService() {
notificationBuilder notificationBuilder
.setContentText( .setContentText(
totalRead.formatAsFileSize() + " / " + totalRead.formatAsFileSize() + " / " +
item.downloadSize.formatAsFileSize() item.downloadSize.formatAsFileSize()
) )
.setProgress( .setProgress(
item.downloadSize.toInt(), item.downloadSize.toInt(),