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.
This commit is contained in:
Peter Osterlund 2019-08-31 23:43:53 +02:00
parent b86e7d31f7
commit 514f2900bd

View File

@ -3684,7 +3684,7 @@ public class DroidFish extends Activity
} else if (moveAnnounceType.startsWith("speech_")) { } else if (moveAnnounceType.startsWith("speech_")) {
speech.say(pos, move); speech.say(pos, move);
} }
if (vibrateEnabled) { if (vibrateEnabled && computerMove) {
Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
v.vibrate(500); v.vibrate(500);
} }