mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2025-05-10 12:45:41 +02:00
fix: Fix incorrect fingerprints (#4917)
This commit is contained in:
parent
bf33b4dae1
commit
49ca3290a7
1 changed files with 2 additions and 2 deletions
|
@ -504,7 +504,7 @@ fun Method.indexOfFirstInstruction(startIndex: Int = 0, targetOpcode: Opcode): I
|
||||||
* @see indexOfFirstInstructionOrThrow
|
* @see indexOfFirstInstructionOrThrow
|
||||||
*/
|
*/
|
||||||
fun Method.indexOfFirstInstruction(startIndex: Int = 0, filter: Instruction.() -> Boolean): Int {
|
fun Method.indexOfFirstInstruction(startIndex: Int = 0, filter: Instruction.() -> Boolean): Int {
|
||||||
var instructions = this.implementation!!.instructions
|
var instructions = this.implementation?.instructions ?: return -1
|
||||||
if (startIndex != 0) {
|
if (startIndex != 0) {
|
||||||
instructions = instructions.drop(startIndex)
|
instructions = instructions.drop(startIndex)
|
||||||
}
|
}
|
||||||
|
@ -570,7 +570,7 @@ fun Method.indexOfFirstInstructionReversed(startIndex: Int? = null, targetOpcode
|
||||||
* @see indexOfFirstInstructionReversedOrThrow
|
* @see indexOfFirstInstructionReversedOrThrow
|
||||||
*/
|
*/
|
||||||
fun Method.indexOfFirstInstructionReversed(startIndex: Int? = null, filter: Instruction.() -> Boolean): Int {
|
fun Method.indexOfFirstInstructionReversed(startIndex: Int? = null, filter: Instruction.() -> Boolean): Int {
|
||||||
var instructions = this.implementation!!.instructions
|
var instructions = this.implementation?.instructions ?: return -1
|
||||||
if (startIndex != null) {
|
if (startIndex != null) {
|
||||||
instructions = instructions.take(startIndex + 1)
|
instructions = instructions.take(startIndex + 1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue