mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-14 20:39:59 -05:00
spotlessApply
my beloved (#1196)
This commit is contained in:
parent
b56a97bb8e
commit
8fd1239bea
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import android.os.ParcelFileDescriptor
|
|||
import com.hippo.unifile.UniFile
|
||||
|
||||
internal fun UniFile.openFileDescriptor(context: Context, mode: String): ParcelFileDescriptor =
|
||||
context.contentResolver.openFileDescriptor(uri, mode) ?: error("Failed to open file descriptor: ${filePath ?: uri.toString()}")
|
||||
context.contentResolver.openFileDescriptor(uri, mode) ?: error("Failed to open file descriptor: ${filePath ?: uri}")
|
||||
|
||||
fun UniFile.archiveReader(context: Context) = openFileDescriptor(context, "r").use { ArchiveReader(it) }
|
||||
|
||||
|
|
Loading…
Reference in a new issue