tap on selected item deselects rather than opening game

This commit is contained in:
Eric House 2013-10-16 06:13:10 -07:00
parent 0c3057f75c
commit 7fd535b141

View file

@ -223,8 +223,13 @@ public class GameListItem extends LinearLayout
setOnClickListener( new View.OnClickListener() { setOnClickListener( new View.OnClickListener() {
@Override @Override
public void onClick( View v ) { public void onClick( View v ) {
// if selected, just un-select
if ( null != m_origDrawable ) {
toggleSelected();
} else {
m_cb.itemClicked( m_rowid, summary ); m_cb.itemClicked( m_rowid, summary );
} }
}
} ); } );
LinearLayout list = LinearLayout list =