From 5f735ffe6ed8196eea2a5d4a0fa0a03302f56996 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 25 Jan 2024 13:18:57 -0500 Subject: [PATCH] v2.3.1: improved vibration checkbox slightly --- .../shatteredpixeldungeon/windows/WndSettings.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java index 33cea4994..aafc76e4a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndSettings.java @@ -637,10 +637,15 @@ public class WndSettings extends WndTabbed { protected void onClick() { super.onClick(); SPDSettings.vibration(checked()); + if (checked()){ + Game.vibrate(250); + } } }; - chkVibrate.checked(SPDSettings.vibration()); chkVibrate.enable(Game.platform.supportsVibration()); + if (chkVibrate.active) { + chkVibrate.checked(SPDSettings.vibration()); + } add(chkVibrate); }