diff --git a/app/src/main/java/app/revanced/integrations/patches/ZoomHapticsPatch.java b/app/src/main/java/app/revanced/integrations/patches/ZoomHapticsPatch.java new file mode 100644 index 00000000..94a07acb --- /dev/null +++ b/app/src/main/java/app/revanced/integrations/patches/ZoomHapticsPatch.java @@ -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(); + } +} diff --git a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java index 8ea0887d..bc99d832 100644 --- a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java +++ b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java @@ -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),