mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
cleanup
don't check standalone games for chat messages
This commit is contained in:
parent
2735144515
commit
4549c397ae
1 changed files with 7 additions and 5 deletions
|
@ -65,7 +65,6 @@ public class GameListItem extends LinearLayout
|
||||||
private TextView m_state;
|
private TextView m_state;
|
||||||
private TextView m_modTime;
|
private TextView m_modTime;
|
||||||
private ImageView m_gameTypeImage;
|
private ImageView m_gameTypeImage;
|
||||||
private View m_hasChatMarker;
|
|
||||||
private TextView m_role;
|
private TextView m_role;
|
||||||
|
|
||||||
private boolean m_expanded, m_haveTurn, m_haveTurnLocal;
|
private boolean m_expanded, m_haveTurn, m_haveTurnLocal;
|
||||||
|
@ -196,7 +195,6 @@ public class GameListItem extends LinearLayout
|
||||||
m_state = (TextView)findViewById( R.id.state );
|
m_state = (TextView)findViewById( R.id.state );
|
||||||
m_modTime = (TextView)findViewById( R.id.modtime );
|
m_modTime = (TextView)findViewById( R.id.modtime );
|
||||||
m_gameTypeImage = (ImageView)findViewById( R.id.game_type_marker );
|
m_gameTypeImage = (ImageView)findViewById( R.id.game_type_marker );
|
||||||
m_hasChatMarker = (View)findViewById( R.id.has_chat_marker );
|
|
||||||
m_thumb = (ImageView)findViewById( R.id.thumbnail );
|
m_thumb = (ImageView)findViewById( R.id.thumbnail );
|
||||||
m_role = (TextView)findViewById( R.id.role );
|
m_role = (TextView)findViewById( R.id.role );
|
||||||
}
|
}
|
||||||
|
@ -326,9 +324,13 @@ public class GameListItem extends LinearLayout
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
boolean hasChat = summary.isMultiGame();
|
||||||
|
if ( hasChat ) {
|
||||||
int flags = DBUtils.getMsgFlags( m_context, m_rowid );
|
int flags = DBUtils.getMsgFlags( m_context, m_rowid );
|
||||||
boolean hasChat = 0 != (flags & GameSummary.MSG_FLAGS_CHAT);
|
hasChat = 0 != (flags & GameSummary.MSG_FLAGS_CHAT);
|
||||||
m_hasChatMarker.setVisibility( hasChat ? View.VISIBLE : View.GONE );
|
}
|
||||||
|
findViewById( R.id.has_chat_marker )
|
||||||
|
.setVisibility( hasChat ? View.VISIBLE : View.GONE );
|
||||||
|
|
||||||
String roleSummary = summary.summarizeRole( m_context, m_rowid );
|
String roleSummary = summary.summarizeRole( m_context, m_rowid );
|
||||||
m_role.setVisibility( null == roleSummary ? View.GONE : View.VISIBLE );
|
m_role.setVisibility( null == roleSummary ? View.GONE : View.VISIBLE );
|
||||||
|
|
Loading…
Reference in a new issue