From 514f2900bd3cc2666dc285a96bb01d32c89a4fe3 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 31 Aug 2019 23:43:53 +0200 Subject: [PATCH] Don't vibrate when human player makes a move The vibration is primarily intended to make the user aware that the computer has played a move, so vibrating when the user plays a move is not useful. --- DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java b/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java index 517fede..cc867c2 100644 --- a/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java +++ b/DroidFishApp/src/main/java/org/petero/droidfish/DroidFish.java @@ -3684,7 +3684,7 @@ public class DroidFish extends Activity } else if (moveAnnounceType.startsWith("speech_")) { speech.say(pos, move); } - if (vibrateEnabled) { + if (vibrateEnabled && computerMove) { Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); v.vibrate(500); }