fix(youtube/hide-shorts-components): sometimes shorts shelves are not hidden from the home feed

This commit is contained in:
inotia00
2023-07-25 02:38:53 +09:00
parent 3d6307f90f
commit 39645be39f
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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()
}