Skip to content

Commit 7991caa

Browse files
committed
fix compile error
1 parent 72fbc44 commit 7991caa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

patches/src/main/kotlin/app/revanced/patches/youtube/utils/toolbar/ToolBarHookPatch.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import app.revanced.patches.youtube.utils.resourceid.sharedResourceIdPatch
1111
import app.revanced.patches.youtube.utils.toolBarButtonFingerprint
1212
import app.revanced.util.fingerprint.methodOrThrow
1313
import app.revanced.util.getReference
14+
import app.revanced.util.indexOfFirstInstructionOrThrow
1415
import app.revanced.util.indexOfFirstInstructionReversedOrThrow
1516
import com.android.tools.smali.dexlib2.Opcode
1617
import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
@@ -44,7 +45,7 @@ val toolBarHookPatch = bytecodePatch(
4445
val enumRegister = getInstruction<FiveRegisterInstruction>(enumOrdinalIndex).registerD
4546
val freeRegister = getInstruction<TwoRegisterInstruction>(freeIndex).registerA
4647

47-
val imageViewIndex = indexOfFirstInstructionReversedOrThrow(enumOrdinalIndex) {
48+
val imageViewIndex = indexOfFirstInstructionOrThrow(enumOrdinalIndex) {
4849
opcode == Opcode.IGET_OBJECT &&
4950
getReference<FieldReference>()?.type == "Landroid/widget/ImageView;"
5051
}

0 commit comments

Comments
 (0)