This commit is contained in:
kunfei
2023-06-20 14:08:23 +08:00
parent e4c7de185c
commit ad1a0f11e3
@@ -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