mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-12 18:04:24 +01:00
fix: clear method lookup maps (#198)
This commit is contained in:
parent
7cb4d4c596
commit
9d81baf4b4
2 changed files with 11 additions and 0 deletions
|
@ -389,6 +389,8 @@ class Patcher(private val options: PatcherOptions) {
|
||||||
if (stopOnError) return@sequence
|
if (stopOnError) return@sequence
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MethodFingerprint.clearFingerprintResolutionLookupMaps()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -138,6 +138,15 @@ abstract class MethodFingerprint(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the internal lookup maps created in [initializeFingerprintResolutionLookupMaps]
|
||||||
|
*/
|
||||||
|
internal fun clearFingerprintResolutionLookupMaps() {
|
||||||
|
methods.clear()
|
||||||
|
methodSignatureLookupMap.clear()
|
||||||
|
methodStringsLookupMap.clear()
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolve a list of [MethodFingerprint] using the lookup map built by [initializeFingerprintResolutionLookupMaps].
|
* Resolve a list of [MethodFingerprint] using the lookup map built by [initializeFingerprintResolutionLookupMaps].
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue