mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
Add NewApi suppressions.
This commit is contained in:
parent
5d6f2ae350
commit
c6c2b260f1
@ -35,6 +35,7 @@ object DownloadHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getDownloadDir(context: Context, path: String): Path {
|
fun getDownloadDir(context: Context, path: String): Path {
|
||||||
|
@Suppress("NewApi") // The Path class is desugared.
|
||||||
return getOfflineStorageDir(context).resolve(path).createDirectories()
|
return getOfflineStorageDir(context).resolve(path).createDirectories()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -442,6 +442,7 @@ class DownloadService : LifecycleService() {
|
|||||||
* Get a [File] from the corresponding download directory and the file name
|
* Get a [File] from the corresponding download directory and the file name
|
||||||
*/
|
*/
|
||||||
private fun getDownloadPath(directory: String, fileName: String): Path {
|
private fun getDownloadPath(directory: String, fileName: String): Path {
|
||||||
|
@Suppress("NewApi") // The Path class is desugared.
|
||||||
return DownloadHelper.getDownloadDir(this, directory).resolve(fileName)
|
return DownloadHelper.getDownloadDir(this, directory).resolve(fileName)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user