mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-30 07:28:26 +01:00
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:
parent
b86e7d31f7
commit
514f2900bd
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user