From 7e562f3fb30d0ef5601114433090b2eebcf04c9e Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 10 Jul 2023 20:31:36 +0200 Subject: [PATCH] fix: find resource by correct name --- .../misc/bottomsheet/hook/patch/BottomSheetHookResourcePatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/bottomsheet/hook/patch/BottomSheetHookResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/bottomsheet/hook/patch/BottomSheetHookResourcePatch.kt index e1d7850e5..bfb244df0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/bottomsheet/hook/patch/BottomSheetHookResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/bottomsheet/hook/patch/BottomSheetHookResourcePatch.kt @@ -11,7 +11,7 @@ import app.revanced.patches.shared.mapping.misc.patch.ResourceMappingPatch @DependsOn([ResourceMappingPatch::class]) class BottomSheetHookResourcePatch : ResourcePatch { override fun execute(context: ResourceContext): PatchResult { - bottomSheetMargins = ResourceMappingPatch.resourceMappings.find { it.name == "bottomSheetMargins" }?.id + bottomSheetMargins = ResourceMappingPatch.resourceMappings.find { it.name == "bottom_sheet_margins" }?.id ?: return PatchResultError("Could not find resource") return PatchResultSuccess()