From df565bb8da4732b07007973ae3f75463d52e8336 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Wed, 8 Feb 2023 06:31:01 +0530 Subject: [PATCH] Fix lint issues. --- .../main/java/com/github/libretube/services/BackgroundMode.kt | 4 +++- .../java/com/github/libretube/services/DownloadService.kt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/services/BackgroundMode.kt b/app/src/main/java/com/github/libretube/services/BackgroundMode.kt index 7d5d6c39e..45dc415b3 100644 --- a/app/src/main/java/com/github/libretube/services/BackgroundMode.kt +++ b/app/src/main/java/com/github/libretube/services/BackgroundMode.kt @@ -297,7 +297,9 @@ class BackgroundMode : LifecycleService() { val uri = if (streams.audioStreams.isNotEmpty()) { PlayerHelper.getAudioSource(this, streams.audioStreams) - } else streams.hls ?: return + } else { + streams.hls ?: return + } val mediaItem = MediaItem.Builder() .setUri(uri) diff --git a/app/src/main/java/com/github/libretube/services/DownloadService.kt b/app/src/main/java/com/github/libretube/services/DownloadService.kt index 9739926f5..1b659610d 100644 --- a/app/src/main/java/com/github/libretube/services/DownloadService.kt +++ b/app/src/main/java/com/github/libretube/services/DownloadService.kt @@ -244,7 +244,7 @@ class DownloadService : LifecycleService() { notificationBuilder .setContentText( totalRead.formatAsFileSize() + " / " + - item.downloadSize.formatAsFileSize() + item.downloadSize.formatAsFileSize() ) .setProgress( item.downloadSize.toInt(),