mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
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:
parent
7f48267397
commit
3aefa3a566
1 changed files with 6 additions and 1 deletions
|
@ -1911,7 +1911,12 @@ public class BoardDelegate extends DelegateBase
|
||||||
{
|
{
|
||||||
m_mySIS.words = null == words? null : wordsToArray( words );
|
m_mySIS.words = null == words? null : wordsToArray( words );
|
||||||
nonBlockingDialog( DlgID.DLG_SCORES, expl );
|
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 );
|
Utils.playNotificationSound( m_activity );
|
||||||
} else {
|
} else {
|
||||||
LastMoveInfo lmi = new LastMoveInfo();
|
LastMoveInfo lmi = new LastMoveInfo();
|
||||||
|
|
Loading…
Add table
Reference in a new issue