Skip to content

Commit

Permalink
feat(youtube): disable-zoom-haptics patch (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliernfrog committed Nov 20, 2022
1 parent 5f1e35a commit fe74f6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package app.revanced.integrations.patches;

import app.revanced.integrations.settings.SettingsEnum;

public class ZoomHapticsPatch {
public static boolean shouldVibrate() {
return !SettingsEnum.DISABLE_ZOOM_HAPTICS.getBoolean();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public enum SettingsEnum {
TAP_SEEKING_ENABLED("revanced_enable_tap_seeking", true, ReturnType.BOOLEAN),
ENABLE_MINIMIZED_PLAYBACK("revanced_enable_minimized_playback", true, ReturnType.BOOLEAN),
OPEN_LINKS_DIRECTLY("revanced_uri_redirect", true, ReturnType.BOOLEAN, true),
DISABLE_ZOOM_HAPTICS("revanced_disable_zoom_haptics", true, ReturnType.BOOLEAN, false),

// Swipe controls
ENABLE_SWIPE_BRIGHTNESS("revanced_enable_swipe_brightness", true, ReturnType.BOOLEAN),
Expand Down

0 comments on commit fe74f6d

Please sign in to comment.