mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-29 13:20:19 +02:00
fix compile error
This commit is contained in:
parent
72fbc4489a
commit
7991caa962
@ -11,6 +11,7 @@ import app.revanced.patches.youtube.utils.resourceid.sharedResourceIdPatch
|
||||
import app.revanced.patches.youtube.utils.toolBarButtonFingerprint
|
||||
import app.revanced.util.fingerprint.methodOrThrow
|
||||
import app.revanced.util.getReference
|
||||
import app.revanced.util.indexOfFirstInstructionOrThrow
|
||||
import app.revanced.util.indexOfFirstInstructionReversedOrThrow
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
|
||||
@ -44,7 +45,7 @@ val toolBarHookPatch = bytecodePatch(
|
||||
val enumRegister = getInstruction<FiveRegisterInstruction>(enumOrdinalIndex).registerD
|
||||
val freeRegister = getInstruction<TwoRegisterInstruction>(freeIndex).registerA
|
||||
|
||||
val imageViewIndex = indexOfFirstInstructionReversedOrThrow(enumOrdinalIndex) {
|
||||
val imageViewIndex = indexOfFirstInstructionOrThrow(enumOrdinalIndex) {
|
||||
opcode == Opcode.IGET_OBJECT &&
|
||||
getReference<FieldReference>()?.type == "Landroid/widget/ImageView;"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user