kunfei пре 3 година
родитељ
комит
9e8f751ca1
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/src/main/java/io/legado/app/utils/ContextExtensions.kt

+ 2 - 1
app/src/main/java/io/legado/app/utils/ContextExtensions.kt

@@ -1,4 +1,4 @@
-@file:Suppress("unused")
+@file:Suppress("unused", "UnusedReceiverParameter")
 
 package io.legado.app.utils
 
@@ -317,6 +317,7 @@ fun Context.openUrl(uri: Uri) {
     }
 }
 
+@SuppressLint("ObsoleteSdkInt")
 fun Context.openFileUri(uri: Uri, type: String? = null) {
     val intent = Intent()
     intent.action = Intent.ACTION_VIEW