fix: Everything works now

This commit is contained in:
oSumAtrIX
2025-11-27 00:36:35 +01:00
parent 8c603802f7
commit e1e03e1b69

View File

@@ -1,6 +1,7 @@
package app.revanced.patches.youtube.misc.navigation
import app.revanced.patcher.*
import app.revanced.patcher.InstructionLocation.MatchAfterImmediately
import app.revanced.patcher.InstructionLocation.MatchAfterWithin
import app.revanced.patches.shared.misc.mapping.ResourceType
import app.revanced.patches.shared.misc.mapping.resourceLiteral
@@ -134,7 +135,8 @@ internal val imageEnumConstructorFingerprint = fingerprint {
accessFlags(AccessFlags.STATIC, AccessFlags.CONSTRUCTOR)
instructions(
string("TAB_ACTIVITY_CAIRO"),
opcode(Opcode.SPUT_OBJECT)
opcode(Opcode.INVOKE_DIRECT, location = MatchAfterImmediately()),
opcode(Opcode.SPUT_OBJECT, location = MatchAfterImmediately())
)
}
@@ -142,6 +144,9 @@ internal val setEnumMapFingerprint = fingerprint {
instructions(
resourceLiteral(ResourceType.DRAWABLE, "yt_fill_bell_black_24"),
methodCall(smali = "Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;", location = MatchAfterWithin(10)),
methodCall(smali = "Ljava/util/EnumMap;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;", location = MatchAfterWithin(10))
methodCall(
smali = "Ljava/util/EnumMap;->put(Ljava/lang/Enum;Ljava/lang/Object;)Ljava/lang/Object;",
location = MatchAfterWithin(10)
)
)
}