File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
patches/src/main/kotlin/app/revanced/patches/youtube/utils/toolbar Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import app.revanced.patches.youtube.utils.resourceid.sharedResourceIdPatch
11
11
import app.revanced.patches.youtube.utils.toolBarButtonFingerprint
12
12
import app.revanced.util.fingerprint.methodOrThrow
13
13
import app.revanced.util.getReference
14
+ import app.revanced.util.indexOfFirstInstructionOrThrow
14
15
import app.revanced.util.indexOfFirstInstructionReversedOrThrow
15
16
import com.android.tools.smali.dexlib2.Opcode
16
17
import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
@@ -44,7 +45,7 @@ val toolBarHookPatch = bytecodePatch(
44
45
val enumRegister = getInstruction<FiveRegisterInstruction >(enumOrdinalIndex).registerD
45
46
val freeRegister = getInstruction<TwoRegisterInstruction >(freeIndex).registerA
46
47
47
- val imageViewIndex = indexOfFirstInstructionReversedOrThrow (enumOrdinalIndex) {
48
+ val imageViewIndex = indexOfFirstInstructionOrThrow (enumOrdinalIndex) {
48
49
opcode == Opcode .IGET_OBJECT &&
49
50
getReference<FieldReference >()?.type == " Landroid/widget/ImageView;"
50
51
}
You can’t perform that action at this time.
0 commit comments