Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit d257b6d

Browse files
author
OxrxL
authored
fix: decode bytebuffer properly (#121)
1 parent 1197313 commit d257b6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/app/revanced/integrations/patches/GeneralBytecodeAdsPatch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private static boolean containsLithoAd(String value, ByteBuffer buffer) {
6161
bufferBlockList.add("YouTube Movies");
6262
}
6363
if (containsAny(value, "home_video_with_context", "related_video_with_context") &&
64-
bufferBlockList.stream().anyMatch(StandardCharsets.UTF_8.decode(buffer).toString()::contains)
64+
bufferBlockList.stream().anyMatch(new String(buffer.array(), StandardCharsets.UTF_8)::contains)
6565
) return true;
6666

6767
if (SettingsEnum.ADREMOVER_COMMENTS_REMOVAL.getBoolean()) {

0 commit comments

Comments
 (0)