mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
log values showing up in the occasional crash
This commit is contained in:
parent
084a45296e
commit
26b4c7da8e
1 changed files with 16 additions and 9 deletions
|
@ -143,7 +143,12 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
if ( ggi.m_expanded ) {
|
||||
List<Object> children = makeChildren( groupID );
|
||||
alist.addAll( children );
|
||||
Assert.assertTrue( ggi.m_count == children.size() );
|
||||
|
||||
if ( BuildConfig.DEBUG && ggi.m_count != children.size() ) {
|
||||
DbgUtils.loge( TAG, "m_count: %d != size: %d",
|
||||
ggi.m_count, children.size() );
|
||||
Assert.fail();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -271,15 +276,17 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
int getGroupPosition( long groupID )
|
||||
{
|
||||
int posn = -1;
|
||||
long[] positions = getGroupPositions();
|
||||
for ( int ii = 0; ii < positions.length; ++ii ) {
|
||||
if ( positions[ii] == groupID ) {
|
||||
posn = ii;
|
||||
break;
|
||||
if ( -1 != groupID ) {
|
||||
long[] positions = getGroupPositions();
|
||||
for ( int ii = 0; ii < positions.length; ++ii ) {
|
||||
if ( positions[ii] == groupID ) {
|
||||
posn = ii;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ( -1 == posn ) {
|
||||
DbgUtils.logd( TAG, "getGroupPosition: group %d not found", groupID );
|
||||
}
|
||||
}
|
||||
if ( -1 == posn ) {
|
||||
DbgUtils.logd( TAG, "getGroupPosition: group %d not found", groupID );
|
||||
}
|
||||
return posn;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue