mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-04 08:34:27 +02:00
fix typo
This commit is contained in:
parent
53d853500d
commit
6633a38ca9
@ -32,10 +32,10 @@ class PlayerButtonPatch : BytecodePatch(
|
|||||||
|
|
||||||
LiveChatFingerprint.result?.let {
|
LiveChatFingerprint.result?.let {
|
||||||
val endIndex = it.scanResult.patternScanResult!!.endIndex
|
val endIndex = it.scanResult.patternScanResult!!.endIndex
|
||||||
val instuctions = it.mutableMethod.instruction(endIndex)
|
val instructions = it.mutableMethod.instruction(endIndex)
|
||||||
val imageButtonClass =
|
val imageButtonClass =
|
||||||
context
|
context
|
||||||
.findClass((instuctions as BuilderInstruction21c)
|
.findClass((instructions as BuilderInstruction21c)
|
||||||
.reference.toString())!!
|
.reference.toString())!!
|
||||||
.mutableClass
|
.mutableClass
|
||||||
|
|
||||||
@ -43,9 +43,9 @@ class PlayerButtonPatch : BytecodePatch(
|
|||||||
with (imageButtonClass.findMutableMethodOf(method)) {
|
with (imageButtonClass.findMutableMethodOf(method)) {
|
||||||
var jumpInstruction = true
|
var jumpInstruction = true
|
||||||
|
|
||||||
implementation!!.instructions.forEachIndexed { index, instuctions ->
|
implementation!!.instructions.forEachIndexed { index, instructions ->
|
||||||
if (instuctions.opcode.ordinal == Opcode.INVOKE_VIRTUAL.ordinal) {
|
if (instructions.opcode.ordinal == Opcode.INVOKE_VIRTUAL.ordinal) {
|
||||||
val definedInstruction = (instuctions as? BuilderInstruction35c)
|
val definedInstruction = (instructions as? BuilderInstruction35c)
|
||||||
|
|
||||||
if (definedInstruction?.reference.toString() ==
|
if (definedInstruction?.reference.toString() ==
|
||||||
"Landroid/view/View;->setVisibility(I)V") {
|
"Landroid/view/View;->setVisibility(I)V") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user