diff --git a/patches/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/LithoFilterPatch.kt b/patches/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/LithoFilterPatch.kt index 0375f413c6..80267b0986 100644 --- a/patches/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/LithoFilterPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/youtube/misc/litho/filter/LithoFilterPatch.kt @@ -133,10 +133,8 @@ val lithoFilterPatch = bytecodePatch( // The only static method in the class. method -> AccessFlags.STATIC.isSet(method.accessFlags) } - val emptyComponentField = classBy { - // Only one field that matches. - it.type == builderMethodDescriptor.returnType - }.fields.single() + + val emptyComponentField = classBy(builderMethodDescriptor.returnType).fields.single() componentCreateFingerprint.method.apply { val insertIndex = if (is_19_17_or_greater) {