mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-31 19:57:06 +01:00
add, disabled, some logging/notification posting stuff useful for debugging
This commit is contained in:
parent
54e5e61e4d
commit
9cfed0be8b
2 changed files with 9 additions and 0 deletions
|
@ -404,6 +404,11 @@ public class GamesListDelegate extends ListDelegateBase
|
||||||
List<Object> alist = new ArrayList<Object>();
|
List<Object> alist = new ArrayList<Object>();
|
||||||
long[] rows = DBUtils.getGroupGames( m_activity, groupID );
|
long[] rows = DBUtils.getGroupGames( m_activity, groupID );
|
||||||
for ( long row : rows ) {
|
for ( long row : rows ) {
|
||||||
|
if ( false && BuildConfig.DEBUG ) {
|
||||||
|
GameUtils.BackMoveResult bmr = new GameUtils.BackMoveResult();
|
||||||
|
bmr.m_lmi = new LastMoveInfo();
|
||||||
|
GameUtils.postMoveNotification( m_activity, row, bmr, false );
|
||||||
|
}
|
||||||
alist.add( new GameRec( row ) );
|
alist.add( new GameRec( row ) );
|
||||||
}
|
}
|
||||||
// DbgUtils.logf( "GamesListDelegate.makeChildren(%d) => %d kids", groupID, alist.size() );
|
// DbgUtils.logf( "GamesListDelegate.makeChildren(%d) => %d kids", groupID, alist.size() );
|
||||||
|
|
|
@ -191,6 +191,9 @@ public class MainActivity extends XWActivity
|
||||||
if ( 0 == fragCount ) {
|
if ( 0 == fragCount ) {
|
||||||
finish();
|
finish();
|
||||||
} else if ( fragCount == m_root.getChildCount() - 1 ) {
|
} else if ( fragCount == m_root.getChildCount() - 1 ) {
|
||||||
|
// View child = m_root.getChildAt( fragCount );
|
||||||
|
// DbgUtils.logf( "onBackStackChanged(): removing view with id %x",
|
||||||
|
// child.getId() );
|
||||||
m_root.removeViewAt( fragCount );
|
m_root.removeViewAt( fragCount );
|
||||||
setVisiblePanes();
|
setVisiblePanes();
|
||||||
}
|
}
|
||||||
|
@ -283,6 +286,7 @@ public class MainActivity extends XWActivity
|
||||||
cont.setLayoutParams( new LayoutParams(0, LayoutParams.MATCH_PARENT, 1.0f) );
|
cont.setLayoutParams( new LayoutParams(0, LayoutParams.MATCH_PARENT, 1.0f) );
|
||||||
int id = --m_nextID;
|
int id = --m_nextID;
|
||||||
cont.setId( id );
|
cont.setId( id );
|
||||||
|
// DbgUtils.logf( "assigning id %x to view with name %s", id, newName );
|
||||||
m_root.addView( cont, replace ? containerCount - 1 : containerCount );
|
m_root.addView( cont, replace ? containerCount - 1 : containerCount );
|
||||||
|
|
||||||
if ( !replace && containerCount >= m_maxPanes ) {
|
if ( !replace && containerCount >= m_maxPanes ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue