add, disabled, some logging/notification posting stuff useful for debugging

This commit is contained in:
Eric House 2016-07-13 12:29:42 -07:00
parent 54e5e61e4d
commit 9cfed0be8b
2 changed files with 9 additions and 0 deletions

View file

@ -404,6 +404,11 @@ public class GamesListDelegate extends ListDelegateBase
List<Object> alist = new ArrayList<Object>();
long[] rows = DBUtils.getGroupGames( m_activity, groupID );
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 ) );
}
// DbgUtils.logf( "GamesListDelegate.makeChildren(%d) => %d kids", groupID, alist.size() );

View file

@ -191,6 +191,9 @@ public class MainActivity extends XWActivity
if ( 0 == fragCount ) {
finish();
} 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 );
setVisiblePanes();
}
@ -283,6 +286,7 @@ public class MainActivity extends XWActivity
cont.setLayoutParams( new LayoutParams(0, LayoutParams.MATCH_PARENT, 1.0f) );
int id = --m_nextID;
cont.setId( id );
// DbgUtils.logf( "assigning id %x to view with name %s", id, newName );
m_root.addView( cont, replace ? containerCount - 1 : containerCount );
if ( !replace && containerCount >= m_maxPanes ) {