From 68a9457464c786a61b756eb18ca5f1ce05316636 Mon Sep 17 00:00:00 2001 From: OxrxL <108184954+OxrxL@users.noreply.github.com> Date: Fri, 23 Sep 2022 21:09:47 +0200 Subject: [PATCH] fix(seekbar-tapping): do not disable seekbar when hiding it (#600) --- .../patch/HideTimeAndSeekbarPatch.kt | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hidetimeandseekbar/patch/HideTimeAndSeekbarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hidetimeandseekbar/patch/HideTimeAndSeekbarPatch.kt index f0c056ae8..87fd7cedc 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hidetimeandseekbar/patch/HideTimeAndSeekbarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hidetimeandseekbar/patch/HideTimeAndSeekbarPatch.kt @@ -10,7 +10,6 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.impl.BytecodePatch -import app.revanced.patches.youtube.interaction.seekbar.fingerprints.SeekbarTappingFingerprint import app.revanced.patches.youtube.layout.hidetimeandseekbar.fingerprints.TimeCounterFingerprint import app.revanced.patches.youtube.layout.hidetimeandseekbar.annotations.HideTimeAndSeekbarCompatibility import app.revanced.patches.youtube.layout.sponsorblock.bytecode.fingerprints.CreateVideoPlayerSeekbarFingerprint @@ -27,7 +26,7 @@ import app.revanced.patches.youtube.misc.settings.framework.components.impl.Swit @Version("0.0.1") class HideTimeAndSeekbarPatch : BytecodePatch( listOf( - CreateVideoPlayerSeekbarFingerprint, SeekbarTappingFingerprint, TimeCounterFingerprint + CreateVideoPlayerSeekbarFingerprint, TimeCounterFingerprint ) ) { override fun execute(data: BytecodeData): PatchResult { @@ -55,20 +54,6 @@ class HideTimeAndSeekbarPatch : BytecodePatch( """ ) - val seekbarTappingMethod = SeekbarTappingFingerprint.result!!.mutableMethod - - seekbarTappingMethod.addInstructions( - 0, """ - invoke-static { }, Lapp/revanced/integrations/patches/HideTimeAndSeekbarPatch;->hideTimeAndSeekbar()Z - move-result v0 - if-eqz v0, :hide_time_and_seekbar - const/4 v0, 0x0 - return v0 - :hide_time_and_seekbar - nop - """ - ) - val timeCounterMethod = TimeCounterFingerprint.result!!.mutableMethod timeCounterMethod.addInstructions(