mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-14 08:01:38 +01:00
cleanup: remove unnecessary params
This commit is contained in:
parent
db07661a44
commit
6f0bfe2c82
4 changed files with 5 additions and 12 deletions
|
@ -2930,10 +2930,9 @@ public class BoardDelegate extends DelegateBase
|
|||
GameSummary summary, CurGameInfo gi,
|
||||
GamePtr jniGamePtr, boolean deleteAfter )
|
||||
{
|
||||
String newName = summary.getRematchName( activity );
|
||||
Intent intent = GamesListDelegate
|
||||
.makeRematchIntent( activity, rowid, groupID, gi,
|
||||
summary.conTypes, newName, deleteAfter );
|
||||
summary.conTypes, deleteAfter );
|
||||
if ( null != intent ) {
|
||||
activity.startActivity( intent );
|
||||
}
|
||||
|
|
|
@ -3213,11 +3213,11 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
return intent;
|
||||
}
|
||||
|
||||
private void launchLikeRematch( CommsAddrRec hostAddr, String name )
|
||||
private void launchLikeRematch( CommsAddrRec hostAddr, String gameName )
|
||||
{
|
||||
Intent intent = makeSelfIntent( m_activity )
|
||||
.putExtra( INVITEE_REC_EXTRA, (Serializable)hostAddr )
|
||||
.putExtra( REMATCH_NEWNAME_EXTRA, name )
|
||||
.putExtra( REMATCH_NEWNAME_EXTRA, gameName )
|
||||
;
|
||||
startActivity( intent );
|
||||
}
|
||||
|
@ -3225,7 +3225,7 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
public static Intent makeRematchIntent( Context context, long rowid,
|
||||
long groupID, CurGameInfo gi,
|
||||
CommsConnTypeSet addrTypes,
|
||||
String newName, boolean deleteAfter )
|
||||
boolean deleteAfter )
|
||||
{
|
||||
Intent intent = null;
|
||||
boolean isSolo = gi.serverRole == CurGameInfo.DeviceRole.SERVER_STANDALONE;
|
||||
|
@ -3233,7 +3233,6 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
.putExtra( REMATCH_ROWID_EXTRA, rowid )
|
||||
.putExtra( REMATCH_GROUPID_EXTRA, groupID )
|
||||
.putExtra( REMATCH_IS_SOLO, isSolo )
|
||||
.putExtra( REMATCH_NEWNAME_EXTRA, newName )
|
||||
.putExtra( REMATCH_DELAFTER_EXTRA, deleteAfter );
|
||||
|
||||
if ( null != addrTypes ) {
|
||||
|
|
|
@ -181,12 +181,6 @@ public class GameSummary implements Serializable {
|
|||
return result;
|
||||
}
|
||||
|
||||
public String getRematchName( Context context )
|
||||
{
|
||||
return LocUtils.getString( context, R.string.rematch_name_fmt,
|
||||
playerNames( context ) );
|
||||
}
|
||||
|
||||
public void setRemoteDevs( Context context, CommsConnType typ, String str )
|
||||
{
|
||||
if ( null != str && 0 < str.length() ) {
|
||||
|
|
|
@ -138,6 +138,7 @@ void
|
|||
nli_setGameName( NetLaunchInfo* nli, const XP_UCHAR* gameName )
|
||||
{
|
||||
XP_SNPRINTF( nli->gameName, sizeof(nli->gameName), "%s", gameName );
|
||||
nli->gameName[sizeof(nli->gameName)-1] = '\0';
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue