From 7de199421c37b3fd77488f60bbd5d492e3bd810e Mon Sep 17 00:00:00 2001 From: TheJeterLP Date: Fri, 8 Jul 2022 23:06:37 +0200 Subject: [PATCH] fix: remove int argument from buffer functions (#71) --- .../integrations/patches/VideoBufferPatch.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/patches/VideoBufferPatch.java b/app/src/main/java/app/revanced/integrations/patches/VideoBufferPatch.java index 430d822a..dcc34cc8 100644 --- a/app/src/main/java/app/revanced/integrations/patches/VideoBufferPatch.java +++ b/app/src/main/java/app/revanced/integrations/patches/VideoBufferPatch.java @@ -4,21 +4,15 @@ import app.revanced.integrations.settings.SettingsEnum; public class VideoBufferPatch { - //ToDo: Write Patch for it. - //See https://drive.google.com/file/d/1LSZZX4NgBIlN0dDCzyI7cECtgbXVg_1j/view?usp=sharing for where it needs to be used. - public static int getMaxBuffer(int original) { + public static int getMaxBuffer() { return SettingsEnum.MAX_BUFFER_INTEGER.getInt(); } - //ToDo: Write Patch for it. - //See https://drive.google.com/file/d/1gIUqPIMq-XP-edT_9wQN1RbmVnk9tJN8/view?usp=sharing for where it needs to be used. - public static int getPlaybackBuffer(int original) { + public static int getPlaybackBuffer() { return SettingsEnum.PLAYBACK_MAX_BUFFER_INTEGER.getInt(); } - //ToDo: Write Patch for it. - //See https://drive.google.com/file/d/1ywL7SxvWrBIIbuZ1YoUIKdZM-U8H_w-p/view?usp=sharing for where it needs to be used. - public static int getReBuffer(int original) { + public static int getReBuffer() { return SettingsEnum.MAX_PLAYBACK_BUFFER_AFTER_REBUFFER_INTEGER.getInt(); }