diff --git a/app/src/main/java/app/revanced/integrations/patches/GeneralBytecodeAdsPatch.java b/app/src/main/java/app/revanced/integrations/patches/GeneralBytecodeAdsPatch.java index 42fc6d90ca..a874d98c75 100644 --- a/app/src/main/java/app/revanced/integrations/patches/GeneralBytecodeAdsPatch.java +++ b/app/src/main/java/app/revanced/integrations/patches/GeneralBytecodeAdsPatch.java @@ -61,7 +61,7 @@ private static boolean containsLithoAd(String value, ByteBuffer buffer) { bufferBlockList.add("YouTube Movies"); } if (containsAny(value, "home_video_with_context", "related_video_with_context") && - bufferBlockList.stream().anyMatch(StandardCharsets.UTF_8.decode(buffer).toString()::contains) + bufferBlockList.stream().anyMatch(new String(buffer.array(), StandardCharsets.UTF_8)::contains) ) return true; if (SettingsEnum.ADREMOVER_COMMENTS_REMOVAL.getBoolean()) {