mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 05:07:41 +02:00
fix(youtube/hide-shorts-components): sometimes shorts shelves are not hidden from the home feed
This commit is contained in:
@ -45,8 +45,7 @@ class ShortsComponentPatch : BytecodePatch() {
|
||||
override fun execute(context: BytecodeContext): PatchResult {
|
||||
|
||||
LithoFilterPatch.addFilter("$PATCHES_PATH/ads/ShortsFilter;")
|
||||
|
||||
context.updatePatchStatus("ShortsComponent")
|
||||
LithoFilterPatch.addFilter("$PATCHES_PATH/ads/ShortsHeaderFilter;")
|
||||
|
||||
/**
|
||||
* Add settings
|
||||
|
@ -14,6 +14,7 @@ import app.revanced.patches.youtube.utils.fingerprints.OnBackPressedFingerprint
|
||||
import app.revanced.patches.youtube.utils.navbarindex.fingerprints.NavBarBuilderFingerprint
|
||||
import app.revanced.patches.youtube.utils.navbarindex.fingerprints.TopBarButtonFingerprint
|
||||
import app.revanced.patches.youtube.utils.resourceid.patch.SharedResourceIdPatch
|
||||
import app.revanced.util.bytecode.BytecodeHelper.injectInit
|
||||
import app.revanced.util.integrations.Constants.UTILS_PATH
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
@ -71,6 +72,8 @@ class NavBarIndexHookPatch : BytecodePatch(
|
||||
}
|
||||
} ?: return NavBarBuilderFingerprint.toErrorResult()
|
||||
|
||||
context.injectInit("NavBarIndexPatch", "initializeIndex")
|
||||
|
||||
return PatchResultSuccess()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user