mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 05:37:40 +02:00
fix(YouTube - Shorts components): Patch failing during building with certain patch selection https://github.com/inotia00/ReVanced_Extended/issues/2581
This commit is contained in:
@ -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.mainactivity.mainActivityResolvePatch
|
||||||
import app.revanced.patches.youtube.utils.navigation.addBottomBarContainerHook
|
import app.revanced.patches.youtube.utils.navigation.addBottomBarContainerHook
|
||||||
import app.revanced.patches.youtube.utils.navigation.navigationBarHookPatch
|
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.patch.PatchList.SHORTS_COMPONENTS
|
||||||
import app.revanced.patches.youtube.utils.playertype.playerTypeHookPatch
|
import app.revanced.patches.youtube.utils.playertype.playerTypeHookPatch
|
||||||
import app.revanced.patches.youtube.utils.playservice.is_18_31_or_greater
|
import app.revanced.patches.youtube.utils.playservice.is_18_31_or_greater
|
||||||
@ -315,11 +316,8 @@ private val shortsCustomActionsPatch = bytecodePatch(
|
|||||||
|
|
||||||
val insertIndex = charSequenceIndex + 2
|
val insertIndex = charSequenceIndex + 2
|
||||||
|
|
||||||
if (getInstruction<ReferenceInstruction>(insertIndex).reference.toString()
|
if (HIDE_FEED_FLYOUT_MENU.included == true)
|
||||||
.startsWith("Lapp/revanced")
|
|
||||||
) {
|
|
||||||
removeInstructions(insertIndex, 2)
|
removeInstructions(insertIndex, 2)
|
||||||
}
|
|
||||||
|
|
||||||
addInstructions(
|
addInstructions(
|
||||||
insertIndex, """
|
insertIndex, """
|
||||||
|
Reference in New Issue
Block a user