From 7fd535b141a5d453686b46e2221662fa01a477d2 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 16 Oct 2013 06:13:10 -0700 Subject: [PATCH] tap on selected item deselects rather than opening game --- .../XWords4/src/org/eehouse/android/xw4/GameListItem.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListItem.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListItem.java index 62f0c71ec..34a710ea8 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListItem.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListItem.java @@ -223,7 +223,12 @@ public class GameListItem extends LinearLayout setOnClickListener( new View.OnClickListener() { @Override public void onClick( View v ) { - m_cb.itemClicked( m_rowid, summary ); + // if selected, just un-select + if ( null != m_origDrawable ) { + toggleSelected(); + } else { + m_cb.itemClicked( m_rowid, summary ); + } } } );