refactor: Only check literal instead of additionally the opcode
This commit is contained in:
parent
5ace3bb568
commit
c4cb1e6f99
7 changed files with 24 additions and 25 deletions
|
|
@ -1,6 +1,6 @@
|
|||
package app.revanced.util.patch
|
||||
|
||||
import app.revanced.extensions.containsConstantInstructionValue
|
||||
import app.revanced.extensions.containsWideLiteralInstructionValue
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
|
||||
|
|
@ -19,6 +19,6 @@ abstract class LiteralValueFingerprint(
|
|||
opcodes = opcodes,
|
||||
strings = strings,
|
||||
customFingerprint = { methodDef, _ ->
|
||||
methodDef.containsConstantInstructionValue(literalSupplier())
|
||||
methodDef.containsWideLiteralInstructionValue(literalSupplier())
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue