mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-11 21:17:47 +01:00
feat(youtube): support version 18.19.35
This commit is contained in:
parent
eb02c92773
commit
b47a781ba7
@ -2,11 +2,8 @@ package app.revanced.integrations.patches;
|
|||||||
|
|
||||||
import app.revanced.integrations.settings.SettingsEnum;
|
import app.revanced.integrations.settings.SettingsEnum;
|
||||||
|
|
||||||
public class SeekbarTappingPatch {
|
public final class SeekbarTappingPatch {
|
||||||
|
public static boolean seekbarTappingEnabled() {
|
||||||
//Used by app.revanced.patches.youtube.interaction.seekbar.patch.EnableSeekbarTappingPatch
|
return SettingsEnum.SEEKBAR_TAPPING.getBoolean();
|
||||||
public static boolean isTapSeekingEnabled() {
|
|
||||||
return SettingsEnum.TAP_SEEKING.getBoolean();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,7 @@ public enum SettingsEnum {
|
|||||||
DISABLE_ZOOM_HAPTICS("revanced_disable_zoom_haptics", BOOLEAN, TRUE),
|
DISABLE_ZOOM_HAPTICS("revanced_disable_zoom_haptics", BOOLEAN, TRUE),
|
||||||
EXTERNAL_BROWSER("revanced_external_browser", BOOLEAN, TRUE, true),
|
EXTERNAL_BROWSER("revanced_external_browser", BOOLEAN, TRUE, true),
|
||||||
AUTO_REPEAT("revanced_auto_repeat", BOOLEAN, FALSE),
|
AUTO_REPEAT("revanced_auto_repeat", BOOLEAN, FALSE),
|
||||||
TAP_SEEKING("revanced_tap_seeking", BOOLEAN, TRUE),
|
SEEKBAR_TAPPING("revanced_seekbar_tapping", BOOLEAN, TRUE),
|
||||||
SPOOF_SIGNATURE_VERIFICATION("revanced_spoof_signature_verification", BOOLEAN, TRUE, "revanced_spoof_signature_verification_user_dialog_message"),
|
SPOOF_SIGNATURE_VERIFICATION("revanced_spoof_signature_verification", BOOLEAN, TRUE, "revanced_spoof_signature_verification_user_dialog_message"),
|
||||||
|
|
||||||
// Swipe controls
|
// Swipe controls
|
||||||
@ -553,7 +553,7 @@ public enum SettingsEnum {
|
|||||||
|
|
||||||
{DEPRECATED_EXTERNAL_BROWSER, EXTERNAL_BROWSER},
|
{DEPRECATED_EXTERNAL_BROWSER, EXTERNAL_BROWSER},
|
||||||
{DEPRECATED_AUTO_REPEAT, AUTO_REPEAT},
|
{DEPRECATED_AUTO_REPEAT, AUTO_REPEAT},
|
||||||
{DEPRECATED_TAP_SEEKING, TAP_SEEKING},
|
{DEPRECATED_TAP_SEEKING, SEEKBAR_TAPPING},
|
||||||
{DEPRECATED_HDR_AUTO_BRIGHTNESS, HDR_AUTO_BRIGHTNESS},
|
{DEPRECATED_HDR_AUTO_BRIGHTNESS, HDR_AUTO_BRIGHTNESS},
|
||||||
|
|
||||||
{DEPRECATED_RYD_USER_ID, RYD_USER_ID},
|
{DEPRECATED_RYD_USER_ID, RYD_USER_ID},
|
||||||
|
@ -1,22 +1,11 @@
|
|||||||
package app.revanced.integrations.sponsorblock;
|
package app.revanced.integrations.sponsorblock;
|
||||||
|
|
||||||
import static app.revanced.integrations.utils.StringRef.str;
|
|
||||||
|
|
||||||
import android.graphics.Canvas;
|
import android.graphics.Canvas;
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.TypedValue;
|
import android.util.TypedValue;
|
||||||
|
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
import app.revanced.integrations.patches.VideoInformation;
|
import app.revanced.integrations.patches.VideoInformation;
|
||||||
import app.revanced.integrations.settings.SettingsEnum;
|
import app.revanced.integrations.settings.SettingsEnum;
|
||||||
import app.revanced.integrations.shared.PlayerType;
|
import app.revanced.integrations.shared.PlayerType;
|
||||||
@ -29,6 +18,11 @@ import app.revanced.integrations.sponsorblock.ui.SponsorBlockViewController;
|
|||||||
import app.revanced.integrations.utils.LogHelper;
|
import app.revanced.integrations.utils.LogHelper;
|
||||||
import app.revanced.integrations.utils.ReVancedUtils;
|
import app.revanced.integrations.utils.ReVancedUtils;
|
||||||
|
|
||||||
|
import java.lang.reflect.Field;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
import static app.revanced.integrations.utils.StringRef.str;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles showing, scheduling, and skipping of all {@link SponsorSegment} for the current video.
|
* Handles showing, scheduling, and skipping of all {@link SponsorSegment} for the current video.
|
||||||
*
|
*
|
||||||
@ -619,10 +613,7 @@ public class SegmentPlaybackController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private static void setSponsorBarAbsoluteLeft(Rect rect) {
|
||||||
* Injection point.
|
|
||||||
*/
|
|
||||||
public static void setSponsorBarAbsoluteLeft(Rect rect) {
|
|
||||||
final int left = rect.left;
|
final int left = rect.left;
|
||||||
if (sponsorBarAbsoluteLeft != left) {
|
if (sponsorBarAbsoluteLeft != left) {
|
||||||
LogHelper.printDebug(() -> "setSponsorBarAbsoluteLeft: " + left);
|
LogHelper.printDebug(() -> "setSponsorBarAbsoluteLeft: " + left);
|
||||||
@ -630,10 +621,7 @@ public class SegmentPlaybackController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private static void setSponsorBarAbsoluteRight(Rect rect) {
|
||||||
* Injection point.
|
|
||||||
*/
|
|
||||||
public static void setSponsorBarAbsoluteRight(Rect rect) {
|
|
||||||
final int right = rect.right;
|
final int right = rect.right;
|
||||||
if (sponsorAbsoluteBarRight != right) {
|
if (sponsorAbsoluteBarRight != right) {
|
||||||
LogHelper.printDebug(() -> "setSponsorBarAbsoluteRight: " + right);
|
LogHelper.printDebug(() -> "setSponsorBarAbsoluteRight: " + right);
|
||||||
|
Loading…
Reference in New Issue
Block a user