File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
app/src/main/java/io/github/chsbuffer/revancedxposed/youtube/misc/litho/filter Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import app.revanced.extension.youtube.patches.components.Filter
44import app.revanced.extension.youtube.patches.components.LithoFilterPatch
55import de.robv.android.xposed.XC_MethodReplacement.returnConstant
66import io.github.chsbuffer.revancedxposed.new
7- import io.github.chsbuffer.revancedxposed.scopedHook
87import io.github.chsbuffer.revancedxposed.youtube.YoutubeHook
98import java.nio.ByteBuffer
109
@@ -70,9 +69,12 @@ fun YoutubeHook.LithoFilter() {
7069 // Turn off a feature flag that enables native code of protobuf parsing (Upb protobuf).
7170 // If this is enabled, then the litho protobuffer hook will always show an empty buffer
7271 // since it's no longer handled by the hooked Java code.
73- ::lithoConverterBufferUpbFeatureFlagFingerprint.hookMethod(scopedHook(::featureFlagCheck.member) {
74- before { it.result = false }
75- })
72+ ::featureFlagCheck.hookMethod {
73+ before {
74+ if (it.args[0 ] == 45419603L )
75+ it.result = false
76+ }
77+ }
7678
7779 // endregion
7880}
You can’t perform that action at this time.
0 commit comments