From 7f9898f31714d7ec629819583f52a5a0355b2b34 Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 19 Dec 2012 20:49:02 -0800 Subject: [PATCH] don't include expiry in group header when expanded --- .../src/org/eehouse/android/xw4/GameListAdapter.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java index f79709bd3..d925c624d 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameListAdapter.java @@ -194,10 +194,11 @@ public class GameListAdapter implements ExpandableListAdapter { String name = groupNames()[groupPosition]; - GameGroupInfo ggi = gameInfo().get( name ); - view.setPct( m_handler, ggi.m_hasTurn, ggi.m_turnLocal, - ggi.m_lastMoveTime ); - + if ( !isExpanded ) { + GameGroupInfo ggi = gameInfo().get( name ); + view.setPct( m_handler, ggi.m_hasTurn, ggi.m_turnLocal, + ggi.m_lastMoveTime ); + } int nKids = getChildrenCount( groupPosition ); name = m_context.getString( R.string.group_namef, name, nKids ); view.setText( name );