mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Fix lint issues.
This commit is contained in:
parent
2321ed22f1
commit
df565bb8da
@ -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)
|
||||||
|
@ -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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user