diff --git a/app/src/main/java/com/github/libretube/api/obj/Streams.kt b/app/src/main/java/com/github/libretube/api/obj/Streams.kt index 182eb41c0..d22f6d4be 100644 --- a/app/src/main/java/com/github/libretube/api/obj/Streams.kt +++ b/app/src/main/java/com/github/libretube/api/obj/Streams.kt @@ -35,7 +35,6 @@ data class Streams( val uploaderSubscriberCount: Long = 0, val previewFrames: List = emptyList() ) { - @Suppress("NewApi") // The Paths class is desugared. fun toDownloadItems( videoId: String, fileName: String, diff --git a/app/src/main/java/com/github/libretube/extensions/Path.kt b/app/src/main/java/com/github/libretube/extensions/Path.kt index ecdccfb73..47cef7df9 100644 --- a/app/src/main/java/com/github/libretube/extensions/Path.kt +++ b/app/src/main/java/com/github/libretube/extensions/Path.kt @@ -10,6 +10,5 @@ fun Path.toAndroidUriOrNull(): Uri? { } fun Path.toAndroidUri(): Uri { - @Suppress("NewApi") // The Path class is desugared. return toFile().toUri() } diff --git a/app/src/main/java/com/github/libretube/helpers/DownloadHelper.kt b/app/src/main/java/com/github/libretube/helpers/DownloadHelper.kt index 3d062eca3..211455a86 100644 --- a/app/src/main/java/com/github/libretube/helpers/DownloadHelper.kt +++ b/app/src/main/java/com/github/libretube/helpers/DownloadHelper.kt @@ -35,7 +35,6 @@ object DownloadHelper { } fun getDownloadDir(context: Context, path: String): Path { - @Suppress("NewApi") // The Path class is desugared. return getOfflineStorageDir(context).resolve(path).createDirectories() } 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 0c2aee132..5f946bd4c 100644 --- a/app/src/main/java/com/github/libretube/services/DownloadService.kt +++ b/app/src/main/java/com/github/libretube/services/DownloadService.kt @@ -440,7 +440,6 @@ class DownloadService : LifecycleService() { * Get a [File] from the corresponding download directory and the file name */ private fun getDownloadPath(directory: String, fileName: String): Path { - @Suppress("NewApi") // The Path class is desugared. return DownloadHelper.getDownloadDir(this, directory).resolve(fileName) }