mirror of
https://github.com/revanced/revanced-manager-compose-old.git
synced 2025-04-29 22:14:28 +02:00
fix: loading local patch bundle
This commit is contained in:
parent
1a89dd30f4
commit
8fff5241c2
@ -14,7 +14,7 @@ import java.nio.file.StandardCopyOption
|
||||
class SourceSelectorViewModel(val app: Application, val patcherUtils: PatcherUtils) : ViewModel() {
|
||||
fun loadBundle(uri: Uri) {
|
||||
try {
|
||||
val patchesFile = app.cacheDir.resolve(File(uri.path!!).name)
|
||||
val patchesFile = app.cacheDir.resolve("patches.jar")
|
||||
Files.copy(
|
||||
app.contentResolver.openInputStream(uri),
|
||||
patchesFile.toPath(),
|
||||
@ -29,4 +29,4 @@ class SourceSelectorViewModel(val app: Application, val patcherUtils: PatcherUti
|
||||
Sentry.captureException(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user