don't make sound/notify on standalone game moves

I'm finding the robot move beeps annoying. If others aren't maybe a
preference would be better. We'll see.
This commit is contained in:
Eric House 2017-06-16 19:24:04 -07:00
parent 7f48267397
commit 3aefa3a566

View file

@ -1911,7 +1911,12 @@ public class BoardDelegate extends DelegateBase
{
m_mySIS.words = null == words? null : wordsToArray( words );
nonBlockingDialog( DlgID.DLG_SCORES, expl );
if ( isVisible() ) {
// Post a notification if in background, or play sound if not. But
// do nothing for standalone case.
if ( DeviceRole.SERVER_STANDALONE == m_gi.serverRole ) {
// do nothing
} else if ( isVisible() ) {
Utils.playNotificationSound( m_activity );
} else {
LastMoveInfo lmi = new LastMoveInfo();