mirror of
https://github.com/revanced/revanced-patches
synced 2024-11-09 17:57:22 +01:00
feat(YouTube - Disable precise seeking gesture): Use better patch name
The new name now is taken from what YouTube names this feature.
This commit is contained in:
parent
e97e0e6631
commit
88cce592ad
@ -15,8 +15,8 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch
|
|||||||
import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
|
import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
|
||||||
|
|
||||||
@Patch(
|
@Patch(
|
||||||
name = "Disable fine scrubbing gesture",
|
name = "Disable precise seeking gesture",
|
||||||
description = "Disables gesture that shows the fine scrubbing overlay when swiping up on the seekbar.",
|
description = "Disables the gesture that is used to seek precisely when swiping up on the seekbar.",
|
||||||
dependencies = [IntegrationsPatch::class, SettingsPatch::class],
|
dependencies = [IntegrationsPatch::class, SettingsPatch::class],
|
||||||
compatiblePackages = [
|
compatiblePackages = [
|
||||||
CompatiblePackage(
|
CompatiblePackage(
|
||||||
@ -30,20 +30,20 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
object DisableFineScrubbingGesturePatch : BytecodePatch(
|
object DisablePreciseSeekingGesturePatch : BytecodePatch(
|
||||||
setOf(IsSwipingUpFingerprint)
|
setOf(IsSwipingUpFingerprint)
|
||||||
) {
|
) {
|
||||||
private const val INTEGRATIONS_METHOD_DESCRIPTOR =
|
private const val INTEGRATIONS_METHOD_DESCRIPTOR =
|
||||||
"Lapp/revanced/integrations/patches/DisableFineScrubbingGesturePatch;->" +
|
"Lapp/revanced/integrations/patches/DisablePreciseSeekingGesturePatch;->" +
|
||||||
"disableGesture(Landroid/view/VelocityTracker;Landroid/view/MotionEvent;)V"
|
"disableGesture(Landroid/view/VelocityTracker;Landroid/view/MotionEvent;)V"
|
||||||
|
|
||||||
override fun execute(context: BytecodeContext) {
|
override fun execute(context: BytecodeContext) {
|
||||||
SettingsPatch.PreferenceScreen.INTERACTIONS.addPreferences(
|
SettingsPatch.PreferenceScreen.INTERACTIONS.addPreferences(
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_disable_fine_scrubbing_gesture",
|
"revanced_disable_precise_seeking_gesture",
|
||||||
StringResource("revanced_disable_fine_scrubbing_gesture_title", "Disable fine scrubbing gesture"),
|
StringResource("revanced_disable_precise_seeking_gesture_title", "Disable precise seeking gesture"),
|
||||||
StringResource("revanced_disable_fine_scrubbing_gesture_summary_on", "Gesture is disabled"),
|
StringResource("revanced_disable_precise_seeking_gesture_summary_on", "Gesture is disabled"),
|
||||||
StringResource("revanced_disable_fine_scrubbing_gesture_summary_off", "Gesture is enabled"),
|
StringResource("revanced_disable_precise_seeking_gesture_summary_off", "Gesture is enabled"),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user