Skip to content

Commit

Permalink
fix(YouTube - Shorts components): Patch failing during building with …
Browse files Browse the repository at this point in the history
…certain patch selection
  • Loading branch information
inotia00 authored and anddea committed Dec 23, 2024
1 parent e7646e2 commit a442ff3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import app.revanced.patches.youtube.utils.lottie.lottieAnimationViewHookPatch
import app.revanced.patches.youtube.utils.mainactivity.mainActivityResolvePatch
import app.revanced.patches.youtube.utils.navigation.addBottomBarContainerHook
import app.revanced.patches.youtube.utils.navigation.navigationBarHookPatch
import app.revanced.patches.youtube.utils.patch.PatchList.HIDE_FEED_FLYOUT_MENU
import app.revanced.patches.youtube.utils.patch.PatchList.SHORTS_COMPONENTS
import app.revanced.patches.youtube.utils.playertype.playerTypeHookPatch
import app.revanced.patches.youtube.utils.playservice.is_18_31_or_greater
Expand Down Expand Up @@ -315,11 +316,8 @@ private val shortsCustomActionsPatch = bytecodePatch(

val insertIndex = charSequenceIndex + 2

if (getInstruction<ReferenceInstruction>(insertIndex).reference.toString()
.startsWith("Lapp/revanced")
) {
if (HIDE_FEED_FLYOUT_MENU.included == true)
removeInstructions(insertIndex, 2)
}

addInstructions(
insertIndex, """
Expand Down

0 comments on commit a442ff3

Please sign in to comment.