mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
more fixing assuming a connection-means-less game is solo
This commit is contained in:
parent
e383d9c7ad
commit
70545eb3f2
2 changed files with 3 additions and 9 deletions
|
@ -42,7 +42,6 @@ import java.util.HashSet;
|
|||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import org.eehouse.android.xw4.jni.CommsAddrRec.CommsConnType;
|
||||
import org.eehouse.android.xw4.jni.GameSummary;
|
||||
import org.eehouse.android.xw4.loc.LocUtils;
|
||||
import org.eehouse.android.xw4.jni.CurGameInfo.DeviceRole;
|
||||
|
@ -302,12 +301,8 @@ public class GameListItem extends LinearLayout
|
|||
DateFormat.SHORT );
|
||||
m_modTime.setText( df.format( new Date( lastMoveTime ) ) );
|
||||
|
||||
int iconID;
|
||||
if ( DeviceRole.SERVER_STANDALONE == summary.serverRole ) {
|
||||
iconID = R.drawable.sologame__gen;
|
||||
} else {
|
||||
iconID = R.drawable.multigame__gen;
|
||||
}
|
||||
int iconID = summary.isMultiGame() ?
|
||||
R.drawable.multigame__gen : R.drawable.sologame__gen;
|
||||
m_marker.setImageResource( iconID );
|
||||
m_marker.setOnClickListener( new View.OnClickListener() {
|
||||
@Override
|
||||
|
|
|
@ -236,8 +236,7 @@ public class GameSummary {
|
|||
|
||||
public boolean isMultiGame()
|
||||
{
|
||||
return ( null != conTypes && 0 < conTypes.size()
|
||||
&& serverRole != DeviceRole.SERVER_STANDALONE );
|
||||
return ( serverRole != DeviceRole.SERVER_STANDALONE );
|
||||
}
|
||||
|
||||
private boolean isLocal( int indx )
|
||||
|
|
Loading…
Reference in a new issue