mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
launch networked rematch games on creation, not just local ones
This commit is contained in:
parent
f7df11b923
commit
6677a3e402
1 changed files with 4 additions and 3 deletions
|
@ -2039,18 +2039,19 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
int bits = intent.getIntExtra( REMATCH_ADDRS_EXTRA, -1 );
|
||||
CommsConnTypeSet addrs = new CommsConnTypeSet( bits );
|
||||
|
||||
long newid;
|
||||
if ( null == btAddr && null == phone && null == relayID ) {
|
||||
long newid = GameUtils.dupeGame( m_activity, srcRowID );
|
||||
newid = GameUtils.dupeGame( m_activity, srcRowID );
|
||||
DBUtils.setName( m_activity, newid, gameName );
|
||||
launchGame( newid );
|
||||
} else {
|
||||
long groupID = DBUtils.getGroupForGame( m_activity, srcRowID );
|
||||
long newid = GameUtils.makeNewMultiGame( m_activity, groupID,
|
||||
newid = GameUtils.makeNewMultiGame( m_activity, groupID,
|
||||
dict, lang,
|
||||
addrs, gameName );
|
||||
DBUtils.addRematchInfo( m_activity, newid, btAddr, phone,
|
||||
relayID );
|
||||
}
|
||||
launchGame( newid );
|
||||
}
|
||||
m_rematchIntent = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue