mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +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 junit.framework.Assert;
|
||||||
|
|
||||||
import org.eehouse.android.xw4.jni.CommsAddrRec.CommsConnType;
|
|
||||||
import org.eehouse.android.xw4.jni.GameSummary;
|
import org.eehouse.android.xw4.jni.GameSummary;
|
||||||
import org.eehouse.android.xw4.loc.LocUtils;
|
import org.eehouse.android.xw4.loc.LocUtils;
|
||||||
import org.eehouse.android.xw4.jni.CurGameInfo.DeviceRole;
|
import org.eehouse.android.xw4.jni.CurGameInfo.DeviceRole;
|
||||||
|
@ -302,12 +301,8 @@ public class GameListItem extends LinearLayout
|
||||||
DateFormat.SHORT );
|
DateFormat.SHORT );
|
||||||
m_modTime.setText( df.format( new Date( lastMoveTime ) ) );
|
m_modTime.setText( df.format( new Date( lastMoveTime ) ) );
|
||||||
|
|
||||||
int iconID;
|
int iconID = summary.isMultiGame() ?
|
||||||
if ( DeviceRole.SERVER_STANDALONE == summary.serverRole ) {
|
R.drawable.multigame__gen : R.drawable.sologame__gen;
|
||||||
iconID = R.drawable.sologame__gen;
|
|
||||||
} else {
|
|
||||||
iconID = R.drawable.multigame__gen;
|
|
||||||
}
|
|
||||||
m_marker.setImageResource( iconID );
|
m_marker.setImageResource( iconID );
|
||||||
m_marker.setOnClickListener( new View.OnClickListener() {
|
m_marker.setOnClickListener( new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -236,8 +236,7 @@ public class GameSummary {
|
||||||
|
|
||||||
public boolean isMultiGame()
|
public boolean isMultiGame()
|
||||||
{
|
{
|
||||||
return ( null != conTypes && 0 < conTypes.size()
|
return ( serverRole != DeviceRole.SERVER_STANDALONE );
|
||||||
&& serverRole != DeviceRole.SERVER_STANDALONE );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isLocal( int indx )
|
private boolean isLocal( int indx )
|
||||||
|
|
Loading…
Reference in a new issue