mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 09:07:47 +01:00
fix: npe when patching on android 8
This commit is contained in:
parent
c5fc54e721
commit
9f64011b26
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,6 @@ import java.io.StringWriter
|
|||
import java.util.logging.LogRecord
|
||||
import java.util.logging.Logger
|
||||
|
||||
|
||||
class MainActivity : FlutterActivity() {
|
||||
private val handler = Handler(Looper.getMainLooper())
|
||||
private lateinit var installerChannel: MethodChannel
|
||||
|
@ -182,7 +181,8 @@ class MainActivity : FlutterActivity() {
|
|||
updateProgress(0.1, "Loading patches...", "Loading patches")
|
||||
|
||||
val patches = PatchBundleLoader.Dex(
|
||||
File(patchBundleFilePath)
|
||||
File(patchBundleFilePath),
|
||||
optimizedDexDirectory = cacheDir
|
||||
).filter { patch ->
|
||||
val isCompatible = patch.compatiblePackages?.any {
|
||||
it.name == patcher.context.packageMetadata.packageName
|
||||
|
|
Loading…
Reference in a new issue