mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-29 13:20:19 +02:00
feat(YouTube/Disable haptic feedback): Disable seek haptic feedback
now also disables seek undo haptic feedback
This commit is contained in:
parent
88dedec168
commit
6aac335c40
@ -13,6 +13,7 @@ import app.revanced.patcher.util.smali.ExternalLabel
|
||||
import app.revanced.patches.youtube.player.hapticfeedback.fingerprints.MarkerHapticsFingerprint
|
||||
import app.revanced.patches.youtube.player.hapticfeedback.fingerprints.ScrubbingHapticsFingerprint
|
||||
import app.revanced.patches.youtube.player.hapticfeedback.fingerprints.SeekHapticsFingerprint
|
||||
import app.revanced.patches.youtube.player.hapticfeedback.fingerprints.SeekUndoHapticsFingerprint
|
||||
import app.revanced.patches.youtube.player.hapticfeedback.fingerprints.ZoomHapticsFingerprint
|
||||
import app.revanced.patches.youtube.utils.settings.SettingsPatch
|
||||
import app.revanced.util.integrations.Constants.PLAYER
|
||||
@ -50,6 +51,7 @@ object HapticFeedBackPatch : BytecodePatch(
|
||||
setOf(
|
||||
MarkerHapticsFingerprint,
|
||||
SeekHapticsFingerprint,
|
||||
SeekUndoHapticsFingerprint,
|
||||
ScrubbingHapticsFingerprint,
|
||||
ZoomHapticsFingerprint
|
||||
)
|
||||
@ -58,6 +60,7 @@ object HapticFeedBackPatch : BytecodePatch(
|
||||
|
||||
arrayOf(
|
||||
SeekHapticsFingerprint to "disableSeekVibrate",
|
||||
SeekUndoHapticsFingerprint to "disableSeekVibrate",
|
||||
ScrubbingHapticsFingerprint to "disableScrubbingVibrate",
|
||||
MarkerHapticsFingerprint to "disableChapterVibrate",
|
||||
ZoomHapticsFingerprint to "disableZoomVibrate"
|
||||
|
@ -0,0 +1,8 @@
|
||||
package app.revanced.patches.youtube.player.hapticfeedback.fingerprints
|
||||
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
|
||||
object SeekUndoHapticsFingerprint : MethodFingerprint(
|
||||
returnType = "V",
|
||||
strings = listOf("Failed to execute seek undo haptics vibrate.")
|
||||
)
|
@ -27,11 +27,13 @@ object ShortsToolBarPatch : BytecodePatch(
|
||||
|
||||
targetMethod.apply {
|
||||
addInstructionsWithLabels(
|
||||
0, """
|
||||
0,
|
||||
"""
|
||||
invoke-static {}, $SHORTS->hideShortsToolBarBanner()Z
|
||||
move-result v0
|
||||
if-nez v0, :hide
|
||||
""", ExternalLabel("hide", getInstruction(implementation!!.instructions.size - 1))
|
||||
""",
|
||||
ExternalLabel("hide", getInstruction(implementation!!.instructions.size - 1))
|
||||
)
|
||||
}
|
||||
} ?: throw ToolBarBannerFingerprint.exception
|
||||
|
Loading…
x
Reference in New Issue
Block a user